Powershell and Scheduled task
I've a command file that starts a powershell script. This command works fine when I run it in a command box on a windows 2008 R2 server. I can see it because it create a log file.When I add this...
View ArticleScript to install multiple .msu Windows Hotfixes
I am writing a simple script that will install multiple hotfixes that cannot be added to the WSUS catalog. The hotfixes are placed on a share and are available to any new builds of the OS. All of the...
View ArticleUnable to run powershell script as a package through SCCM 2012
Hi All,I have a powershell script that i can run manually on a Windows 8.1 machine but when i create a package for that script in SCCM 2012 and than try to execute it it fails. the command I use in...
View Articleneed help on -replace with double quote
Hello, the following code is not working due to the dot (.) : $configFiles=get-childitem . *.xml -recforeach ($file in $configFiles){(Get-Content $file.PSPath) | Foreach-Object {$_ -replace...
View ArticlePowerShell script and scheduled task
Hello, I have made a script that makes some backup and then sends a confirmation email. The script works fine when run from ISE but it does not work from Task Scheduler. In Task Scheduler the result is...
View ArticleScript Sharegate and Simplify Very Large SharePoint Migrations
The simplest SharePoint migration tool is now ready for all migrations with full PowerShell scripting integration. Read More
View ArticleClean up unused Services from Azure Portal with PowerShell
So I’ve recently been using lots of VM’s and I end up getting through them fairly quickly – deleting and creating them regularly.What I ended up with was loads of ghost services in the portal that...
View Article#PSTip GitHub PowerShell syntax highlighting in Markdown
GitHub, a service for hosting development projects that can be written in many programing and scripting languages has its own extensions to the popular Markdown style. This allows us to add syntax...
View ArticleIn Residence Courses?
If a person wanted to go to any in residence powershell courses, are there any you would recomend?
View ArticleNeed to delete the unwanted columns from excel
HI There,I am trying to delete unwanted excel columns from the excel file and to display that in HTML file, i am trying to test it the powershell window closes with out any error. and my script is #...
View ArticleIssue with ForEach cmdlet
Working on a script with the code pasted below. I am getting a message"cmdlet ForEach-Object at command pipeline position 2 Supply values for the following parameters: Process[0]" If I enter a value...
View ArticlePowershell Installing
I have a powershell script that runs an installation of an application. I deploy this application with SCCM. SCCM executes the scripts as "SYSTEM" My problem is that the setup.exe won't install...
View Articlemodify content of an xml
Hello,I'm new to Powershell and this forum and I'm hoping somebody can help me.I have an XML file that I need to remove the time from two lines. The date and time vary throughout the file so I cannot...
View ArticleExport csv contents
Hi i am trying to remove the unwanted columns from csv.the problem is i am able to get the headers only, finding difficulties in bringing the contents from those columns
View ArticleLong File Paths
The MAX_PATH for Windows is 260 characters, really 259 because the <NULL> character at the end. At my company there are some users who have files and directories that they cannot open because the...
View Articlevery simple yet doesnt work:)
could it be lack of coffee or something:)I did this before in different ways but now cant get it to workI just to check the size of a folder or a sum of files inside a folder(logs)seems very straight...
View ArticleIs there a way to pull number of e-mails sent\received from a particular Ad...
Good day everyone, I have a bit of a problem hopefully someone can help me here. I have a domain ABC.com with several Ad forests. Is there a powershell script that can distinguish users from a...
View ArticleHow to handle a Piped in property string that contains Parentheses?
Hi, I am trying to pipe a command into the "where-object" cmdlet that has had a couple of its properties renamed to a label like "size(GB)". The problem is that when I try to use that object...
View ArticleHow to make an array in Powershell to Work with Array Published Data in SCORCH
Recently I’ve had a tricky issue with SCORCH to get some CSV seperated data out of a column of a table and work on each item in the CSV data in turn in SCORCH.This turned out to be a challenge to do...
View ArticleHate to say it, but Powershell is cool!
There was Powershell. At first, I didnt quite understand its potential, and role in the Microsoft product suite. Then came the ‘not-quite-headless’ windows server. (I was like: oooh, It looks like...
View Article