Simple powershell question
How do I view the event log "microsoft-windows-Printservice/operational" using get-eventlog?If I do get-eventlog -list log it list the event logs under Windows Logs
View ArticleConverting a .txt to .csv
I need to convert a text report which contains multiple spaces, commas, etc to a csv so I can send it in .xlsx format. When I try I get weird results. Due to the nature of the report it is hard to give...
View Articlepowershell mapped drive not showing in my computer
I want to map a drive using powershell however it's not showing in my computer at all. If I run get-psdrive it does come up on the listthis is what I'm using...
View ArticleGet-WmiObject Loop Issue
I have a script that I want to use to monitor the disk usage of a machines C: drive (logical drive). Now, I can put each line in individually and it will run. I can even run the script line by line up...
View ArticleQuestion On Splitting A String In Powershell
I've been reading about the "Split" operator in PowerShell. (http://technet.microsoft.com/en-us/library/hh847811.aspx)Based on what was in that article, it looks like I need a delimiter to split a...
View ArticlePowerShell Command
I need some help from some of you PowerShell / Scripting / Coding GurusII need to copy some folders form one server to another. In the past I have used RoboCopy. But I thought I might try PowerShell. I...
View ArticleRenaming a text file using powershell
Hi everyone. I have a database that does 2 exports every night to a c:\spool directory. There are many other files in that directory that I do not need. Every night instead of overwriting the 2 export...
View ArticleList all permissions and shares on a server?
I am trying to find and short script that I can use to find all the permissions and shares on a server preferably running power shell.
View ArticleManipulating IP addresses
My google foo is not good today.I have an ip address that I assign$scope = 192.168.0.0its a /23I want to end up with exclusionsExlusionAStart = 192.168.0.4ExlusionAEnd = 192.168.0.230ExlusionBStart =...
View ArticleFailure to Install-Module
So, I am trying to install a module in Powershell, and am having nothing but bad luck. Here is my input history thus...
View ArticleWhat was your PowerShell project this week? 11/21/2014
What's this weeks PowerShell magic you've pulled off? Here is your chance to wow us!
View ArticleIterating powershell code for scheduled reboot jobs -REQUIRES URGENT HELP
Hello Everyone, Being windows administrator it is necessary to patch the Servers till the latest and so its necessary to Reboot them after patching in order to see the effects the patches.I have...
View Articleappend data to extensionAttribute
Very new to PowerShell so please bear with me.I'm looking to add addtional information to existing data listed in extensionAttribute4 for user accounts in AD. Currently it holds 4 alpha characters. I...
View ArticleIT Pro Education: Lets Learn Powershell! - AD User Group Membership
I thought it would be helpful to start a series of how to do some basic things in Powershell. If you are interested in learning Powershell feel free to follow me. I'm going to try and write these short...
View ArticleSFTP upload a file to a host via powershell
Text$sftpHost = "12.11.112.5" $port = "1255" $userName = "yourUserName" $userPassword = "yourPassword" $remotedirectory = "/usr/home/transfer" $localFileList = "C:\file1.txt", "C:\file2.txt",...
View Articleencrypt user/password from windows on shared folder on unix
Dear All I have windows server 2008 r2 and I want to use the command net use command to access Unix shared folder.someone suggested me to use powershell (New-PSDrive.) as the following:$admin =...
View ArticleWhat I learned today: Getting Properties via Get-ADUser
When getting a property with Get-ADUser and that property isn't set, if using the friendly names that Get-ADUser makes available, then an object is returned that contains that property and the...
View ArticleHelp with a script
Hey everyone.Was wondering if any of you scripting guru's would be able to give me a hand.I normally dont do powershell scripts (maybe done one) but I think what I'm after would require powershell and...
View ArticleWorking with environment variables in PowerShell
Windows IT Pro has an excellent tutorial on what you can and can't do with environment variables in PowerShell. Not to be confused with PowerShell variables, environment variables contain information...
View ArticlePowershell Get-ChildItem filter array of folder names
I am having a bit of a time figuring this one out.I have an array, that contains folder names (not the full path) and I am trying to use Get-ChildItem, and either use include/exclude, filter, or...
View Article