-
Dan Franciscus commented on
Install Windows updates remotely with the PowerShell 3 years, 12 months ago
In this version not if done remotely while in the shell. You can do a few things to get around that though like using the PendingReboot module to run it on the remote machine. https://www.powershellgallery.com/packages/PendingReboot/0.9.0.6
-
-
-
Dan Franciscus wrote a new post,
Monitor file changes in Windows with PowerShell and pswatch 4 years, 4 months ago
Sometimes I have wanted to monitor a directory for any file changes and receive alerts of those changes, for instance, when trying to find where an application is saving a configuration file. One solution I have come across is the small PowerShell module pswatch, which José F. Romaniello created.
-
Dan Franciscus liked comment of Marc R Kellerman on Running PowerShell remotely as SYSTEM with Invoke-CommandAs. (So far, Marc R Kellerman has 2 likes for this comment.) 4 years, 5 months ago
-
Dan Franciscus wrote a new post,
Running PowerShell remotely as SYSTEM with Invoke-CommandAs 4 years, 5 months ago
The Invoke-CommandAs module allows you to execute PowerShell commands remotely as the SYSTEM account. In this article, I will show how Invoke-CommandAs works and some of the behind-the-scenes code it uses.
-
Ive updated the post to reflect that ESXi is not linux-based.
-
Dan Franciscus wrote a new post,
How to centralize PowerShell transcript logs 4 years, 10 months ago
One of the logs that can trace an attacker’s activity is a transcript log. Transcript logs are basically an “over-the-shoulder” method of seeing what’s occurring in any given PowerShell session. It shows which commands the user is running and any output printed to the console. In this article, I will show how to centralize these logs for machines in Active Directory (AD) for further investigation if needed.
-
Dan Franciscus wrote a new post,
Using Invoke-VMScript for running remote scripts on VMs with PowerCLI 4 years, 11 months ago
Invoke-VMScript allows you to run PowerShell, batch, and Bash scripts on remote VMware virtual machines from PowerShell. Not only that but since you are actually authenticating to vCenter or ESXi, it does not require network connectivity to the server you want to run the script on.
-
Dan Franciscus commented on
Windows 10 in-place upgrade with PowerShell and MDT 4 years, 11 months ago
Are you doing something like this? Does it work outside of task scheduler?
Start-Transcript <parameters and stuff>
Invoke-Win10Upgrade <parameters and stuff>
Stop-Transcript <parameters and stuff>
-
Dan Franciscus commented on
Windows 10 in-place upgrade with PowerShell and MDT 4 years, 11 months ago
There are a few ways to do this. I would recommend for security purposes, encrypting the password to a file and then decrypting when executing the script. This will help you.
https://blog.kloud.com.au/2016/04/21/using-saved-credentials-securely-in-powershell-scripts/
-
Dan Franciscus commented on
Windows 10 in-place upgrade with PowerShell and MDT 4 years, 11 months ago
Hmm. Are both machines in Active Directory? That would be one requirement, unless you are using PKI/or SSL certificates on the client.
-
Sorry its in version 1 it seems. I never realized major changes were made to newer versions.
-
Darn thats a shame. I couldnt find it on Github. Maybe he is going to try and sell it lol.
-
Yep, I am going to update the article specifying I was using an older version.
-
Dan Franciscus liked comment of Caleb on Install Windows updates remotely with the PowerShell. (So far, Caleb has 1 likes for this comment.) 5 years ago
-
Sorry should have specified this. Its not a builtin PowerShell module.
https://www.powershellgallery.com/packages/PSWindowsUpdate/2.0.0.4
Install by doing:
Install-Module PSWindowsUpdate
-
Dan Franciscus wrote a new post,
Install Windows updates remotely with the PowerShell 5 years ago
If you go check the PowerShell Gallery you will find a great module in the top 100 downloads called PSWindowsUpdate. This is one of my favorite modules because it fits a specific need that many organizations have, which is orchestrating the deployment of Windows updates. There are many great cmdlets in this module, but the one I will focus on today is Invoke-WUInstall, used to install Windows updates remotely.
- Load More