Regex rename multiple files
Hi, I have a direcotry with about 20 .sql files which i need to rename. File pattern is...
View Article& $pshome\Configure-wsman.ps1 Not recognized
I am new to PowerShell and I'm stuck on this step in this book I bought two days ago that teaches beginners about powershell. The book wants me to configure WS-management protocol to work with...
View ArticleString formating question
Hello can someone please help me with the following question pleaseI want to result to read 5% "{0:P}" -f 5However the output is 500.00%How can I make the above output 5% please?also I understand you...
View Articlefind active users question
I have this code that works. get-aduser -ldapfilter "(&(&(objectCategory=user)(userAccountControl=512)))" | Select sAMAccountName, Enabled, givenname | out-file c:\temp\\users1.csv The problem...
View ArticlePrompt Recovery of Virtual Disk Data from Damaged Partition
Normal 0 false false false EN-US X-NONE X-NONEAward winning perfect VHD repair software equipped unique concept for data recovering from damaged Virtual disk drive. Application particularly planned...
View ArticleConvert lotus notes nsf to outlook pst
With this software Convert your Outlook mails to Lotus Notes you need to use an effective pst to nsf conversion tool for which you can use Nsf to Pst Conversion software.nsf to pst is the software...
View ArticleUpdate Printer Mappings And Keep The Default Printer.
Hi all, I have found the following script on another website to update printers and there is a part in that script that it is supposed to keep the default printer. The only error I get is the...
View ArticleProblem Changing Drive Letter
Hi all,I'm having issues trying to change a Drive letter of external drives. The script I use is below.$drive = Get-WmiObject -Class Win32_Volume -Authentication 6 | where {$_.DeviceID -like...
View ArticleNewbie question --
Normal 0 false false false EN-US X-NONE X-NONEI am a rank novice at PowerShell. I decided to plow through an on-line tutorial and try some scripting activity to delete old files on a video server.For...
View ArticleMerge Multiple CSV files.
I want to merge these files and get in a single CSV as shown in below exampleCSV File 1==========Hosts ABC DEF===== === ===SVR01 10 100SRV02 22 99CSV File 2==========Hosts ABC DEF===== === ===SVR03 13...
View ArticleRenaming .cab files using String.split
I've been tasked with renaming .cab files to remove everything up to KB and the numeric part and add versioning if the numerical part of the filename is the same.I've mocked up the following scenario...
View ArticleIterating through a spreadsheet (Too slow!)
Hey everyone. I'm very new to power shell and have written a script to iterate through a spreadsheet, removing duplicate email addresses from another multiple sheet workbook.It works, but is very slow....
View ArticleProvider setting question/confusion
am puzzled by the PowerShell syntax and/or Provider concepts.Possibly someone can set me straight.Consider the variable $strXX = \\192.168.0.240\Test\ZZZ Set-Location $strXX sets the current...
View ArticleAzure Traffic Manager External Endpoints and Weighted Round Robin via PowerShell
At TechEd North America, we announced Azure Traffic Manager support for endpoints external to Azure. We are happy to announce a further enhancement, adding support for weights when using round-robin...
View ArticleIf then Help
I working on this script that gets networked printers from a remote computers. I am trying to to add some logic where if the computer and or username are not correct the script ends. simple right! The...
View ArticleProblem with running a remote script within a script.
I've got a script that's on one of my servers.I wanted to make a new script (which i can distribute to others at the IT-dept) that would enter a pssession and invoke-command the script.I've been...
View ArticleFormat output
Hey guys I'm new to powershell and I some powershell that will tell me the the members of the local admin group on client PCs, the issue I have is the formatting of the members column needs to be...
View ArticleCommand line arguments in PS
Hi All, I'd like to call the following CMD command in Powershell with these parameters: svr1, svr2, db1, db2 and the script file name. Any help is appreciated. Thank you. C:\OCDB.exe CN1="Data...
View ArticleHow to continue script after server reboots?
I would like to do something like this. Code below does not work. Set-ExecutionPolicy Unrestrictedworkflow New-CustomWorkflow{ function DoSomething() { #Do something that requires restart,...
View ArticleNeed to pass variables from a local script to a remote script.
What i got is two scripts.Connector.ps1 which is run locally (planning to exe-wrap this)mainscript.ps1 which is located on a DC.Connector is essentially the part of the script that authenticates to the...
View Article