Comment on Remoting the Implicit Way by Jordan Mills
Looks like the best part doesn’t always work: Import-Module : The module ADFS cannot be imported over a CimSession. Try using the PSSession parameter of the Import-Module cmdlet.
View ArticleComment on Remoting the Implicit Way by jrv
You can only import a session in a PsSession and never in a CimSession. This is standard and has always been that way.
View ArticleComment on Using PowerShell to create a folder of Demo data by Anonymous
(The content was deleted per user request)
View ArticleComment on Using PowerShell to create a folder of Demo data by RichardEmptage
Instead of changing the system time, why wouldn’t you use something more like $myfile=get-item -Path $filename; ($myfile).LastWriteTime = (get-date).AddMinutes( -($MinutesToMove + ($HoursToMove +...
View ArticleComment on PowerTip: Turn off the power to your computer with PowerShell by...
similarly, If I need to restart the computer “in a while”, after I expect something to be done, I use: sleep 3600; restart-computer -force Simple but effective. There is also the non-powershell:...
View ArticleComment on PowerTip: Determine if PowerShell is Running x86 or x64 by Vector BCO
@PetSerAl thanks for your answer, great thing! but unfortunatelly not working on powershell -v 2
View ArticleComment on PowerTip: Determine if PowerShell is Running x86 or x64 by jrv
V2 should not be used anymore and will completely disappear by 11/30/2019. V2 has some serious security issues. All systems should be upgraded to the latest version of WMF. WMI is a better way to...
View ArticleComment on PowerTip: Determine if PowerShell is Running x86 or x64 by Vector BCO
@jrv, thanks. I fully agree with you, but sometimes I need make solution with backword compatibility
View ArticleComment on Using the Split Method in PowerShell by Frank E Lesniak
I was annoyed with some of the nuanced behaviors of -split, as well as its lack of backward compatibility. Check out my workaround here: https://stackoverflow.com/a/53368648/2134110
View ArticleComment on Handling Errors the PowerShell Way by Nemanja.Jovic
Thank you Trevor, brilliant as always!
View Article
More Pages to Explore .....