But how can one use Psexec to execute a PowerShell script on a Windows server, and inject domain username/password (eg. Create-FailoverCluster that requires permissions to create AD computer object)?
The user invoking the PowerShell script is NT AUTHORITYSYSTEM (from an Azure DevOps automated pipeline), but need the PS1 file to run with domain credentials. I can get the username and password to the script, but seems that it is not allowed to elevate the creds.
Ignore my comment above – I’ve done another export/import using the PMC gui this time and it looks to have imported the default printer settings over. Not sure why it didn’t work using the printbrm command though.
Hi, Is this supposed to also export/import driver settings like default paper size, duplex settings etc. for each printer? I have almost 700 printers to migrate and after importing the printers to the new server (using the command line) it hasn’t retained the specific driver settings for each printer (e.g. printing defaults are not the same). Thanks.
Hello Dave, Of course it’s possible, but I don’t recommend it. Why ? Does your server have the latest drivers for your printers ? Not sure ! You risk having a brand new 2019 server with obsolete drivers, and perhaps even drivers that still work in Kernel mode (“Vade Retro Satanas” :-)) and not in User mode.
What I recommend (of course it’s longer, but it will be clean). – Identification brand / models of your printers – Go to the site of the manufacturers and download the latest drivers for these models. Make yourself a repository for your drivers. – Creating the printer queues with these new drivers. Be free to do it in GUI or online command mode (script) as you prefer.
There, you will have something clean that will work for years, and not something dirty with pans below.
Remember: “The advisers are not payers”. Feel free to do as you want. Hope this help Regards
Thank you for replying! Well, my situation is that I need to run your commands ‘outside’ the VM. Sorry for the newbie term (‘coz I’m exactly that – a newbie). Specifically, the Set-DNSClientServerAddress command. This command necessitates me to be ‘inside’ the VM so I can change it’s DNS IP address. I need to do this while I’m ‘outside’ the VM. In fact, I’m adding this line of code to a Powershell syntax that automates VM creation installed with a virtual hard drive (to also automate OS installation) plus setting up virtual network connection with a specific DNS server. The part with the DNS server that I have to specify for the VM is the tricky part for me.
Error 0x800f0954 usually occurs at the time of installing the .NET Framework or sub-components on Windows 10. Here’s how to resolve this issue in simple steps.
In recent days, most Windows 10 users are reporting error 0x800f0954 while installing .NET Framework 3.5 or its subcomponents. Whatever may be the reason behind the error, the good thing is that you can fix the error by following some simple steps. Here are the best possible solutions to deal with this situation.
Hello, What is the KQL query to fetch the logs of URL clicks on emails on “Advance hunting” pane as the above explanation is totally on “threat explorer” pane and its pretty good, but we are looking to collect the events/logs of URL clicks on emails from “Advance hunting” pane via some other Automation tools – XSOAR & Phantom.
Can you please help me with the KQL query logic how to achieve that?
Thank you. I was thinking of how to rollback (remove) the extension, if something should go wrong or if management wants to remove it down the line. When we submit a “Change” we also need a rollback plan.
This script works great for installing. Thank you very much for that.
I’m not one to leave comments but this looks awesome. I messed around with the hydration pack in it’s early start but it was just a lot of configuration. This looks like it’s easy and straight to the point!.
how to open the desktop client with added subscription address. so that the address is pre-populated and user just need to login with user name and password. i created a small app on users thin client machines with a button to connect to their AVD, some user will click this button desktop client opens with the subscription address.
Does DFSR or a related version of that service work with Azure Directory Services? If so, what are the typical replication latencies like in the Azure environment – and how do they compare with a distributed AD environment?