Reply To: Copy Folder and add Registry Key/Value
Thanks Sam tried that but didn't change its behavior.. just creates a 7KB inaccessible file called BGInfo. In addition noticed that the registry key creation and value work on 2012 but not 2008? Ugh...
View ArticleReply To: Trying to pick from list of DCs
The latter. Simple as that. Thank you Get-ADDomainController -Filter * | Select-Object name,site | out-gridview -title "Change Domain Controller" -PassThru
View ArticleReply To: Copy Folder and add Registry Key/Value
So ran winrm quickconfig on the 2008 server and modified the listener, now that works but is there a way to enable that via powershell?
View ArticleReply To: Trying to pick from list of DCs
Ah easy – totally missed that cmdlet get-addomaincontroller
View ArticleReply To: Copy Folder and add Registry Key/Value
the lines $servername = "serv1" copy-item -Path "\\shares\home\user\AdminTools\bginfo\" -Recurse -Destination "\\$servername\c$\BGInfo" have been tested to work as intended from server 2012 r2 to...
View ArticleReply To: Copy Folder and add Registry Key/Value
Thanks Sam must be something with our Windows set up…
View ArticleReply To: Trying to pick from list of DCs
There are some fun parameters with Get-ADDomainController too. If you're looking for the closest domain controller to the computer you're running the script from: Get-ADDomainController -Discover...
View ArticlePS-Drive and move-item
Hello, I need to move some files from Server A (Workgroup) to Server B (Domain) I have created the following PSDrive on ServerB: New-PSDrive -Name A -PSProvider FileSystem -Root '\\ServerA\Files'...
View ArticleReply To: Cannot create pull server across domains
Yes, there is a one way trust, from my workstation domain to my second domain. I can connect via UNC path using the same credentials.
View ArticleReply To: Check Exchange configuration Change
This is more an Exchange question, I guess. How would you manually connect to, and query, an Exchange server while providing alternate credentials? For example, do the commands support the use of...
View ArticleReply To: PS-Drive and move-item
Is it denying you access on the reading of the source files, or the writing of the target files? Or denying you access on deleting the source files after the copy?
View ArticleReply To: Doubt on handling non-terminating error
Mathieu Buisson, Thanks for replying. I was trying to use $ErrorActionPreference setting it to SilentlyContinue in the beginning of the script and setting to Continue again in the end of the script....
View ArticleReply To: "A command that prompts the user failed…"
Thanks! I'm new to DSC and didn't know that it used workflows in the background. I also didn't know about the requirement to not use Write-Host. Thanks!
View ArticleiTunes xml
Hi Guys, Has anyone tried comparing 2 iTunes libraries for missing albums. What I've got so far is #Get contents of Library.xml [xml]$PCDrive = Get-Content "C:\Scripts\OfficePC.xml" [xml]$NAS =...
View ArticleHTML Reports in PowerShell eBook Question
Hi Guys, First, thanks to Don Jones for the HTML Reports in PowerShell eBook. I've just started my journey with PowerShell and this is one of my first reads. Actually, I've also watched most of Don's...
View ArticleReply To: HTML Reports in PowerShell eBook Question
Hash tables don't preserve order. However, if you specify properties when converting to HTML, it'll preserve that order. Newer versions of PowerShell also let you declare the hash table as ordered,...
View ArticleReply To: HTML Reports in PowerShell eBook Question
A few demonstrations of how to specify the order of properties in an object. The object is piped to Out-Host at each step of the way, to demonstrate that they all produce the same order of properties...
View ArticleReply To: iTunes xml
That is a seriously ugly XML format… way to go, Apple. :\ Instead of using XML elements or attributes to identify things, they seem to be doing everything with a key element followed by some data type...
View ArticleEditing text in PSWA
Anyone know of text editor that can be used in PowerShell web access? I was hoping to use vim.exe, but that doesn't seem to work.
View ArticleReply To: Editing text in PSWA
Nothing. It isn't an SSH session; it's sending commands via WS-MAN, and receiving serialized (XML) results via WS-MAN. It isn't in any way a "console" session that would allow for any kind of...
View Article