You wanted it…PowerShell Summit Europe
For the longest time members of the PowerShell Community clamored for a European edition of the PowerShell Summit. This is an intense, 3 day conference on all things PowerShell, led by members of the...
View Article#PSTip Taking control of verbose and debug output, part 1
One of the PowerShell features that makes writing scripts and functions easier is ability to produce different types of output. We can generate errors, warnings, verbose, and debug messages. For...
View ArticleSMB3 PowerShell changes in Windows Server 2012 R2: SMB Witness improvements
Windows Server 2012 R2 introduced a new version of SMB. Technically it’s SMB version 3.02, but we continue to call it just SMB3.Read More
View ArticleSSIS Execution Results Vary
Good morning Community, I'm using a slight variation of a script found here: http://poshcode.org/889 to run SSIS packages. It's not too different, because why reinvent the wheel? Everything works great...
View Article#PSTip Taking control of verbose and debug output, part 2
In the first part of this series, we identified the problem–commands (scripts or functions) that ‘partially’ support verbose and debug messages. And the solution we identified was to make sure any...
View Article.ps1 script which should not be opened by others
Hello Guys,Am new to powershell, already started with scripting. for a specific task am using a poweshell script. But when i deliver it to use for all users. I don't want everyone to open the script...
View ArticleRetrieve words from text file.
Below is an example of text lines from a log file. How can I capture the domain\userid after the word (User) & the computer name after the word (Machine).Thank you in advance!...
View ArticleExtracting data from an INI file on remote servers
Good afternoon all,I'm trying to extract the following data out of an file named DevManBE.ini. Battery Month=8Battery Day=8Battery Year=2012The file is on all remote servers that have the HP Power...
View ArticleRead remote registry - service woes
I want to read the remote registry using PowerShell which I know will require [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey()Firstly though, I need to ensure the RemoteRegistry service is running....
View Article2012 vs 2012R2 disk info
I have a script to run and obtain disk information. It runs on 2012 but fails on 2012R2. This is due to one comma " , " in the command. My goal is to run my disk.ps1 and have it remotely query the...
View ArticleGet ADgroup properties
Normal 0 false false false EN-US ZH-CN X-NONEHi I am new to powershell, I need help to extract information into csv but not successful. I need information from AD, group with group name, description,...
View ArticleReplace usernames from mapping-table.csv
Hi.I have several text-files with different usernames that has to be replaced according to a mapping-table.csv file. Does anyone know of a nice script to use?Best regards Trond
View ArticleScript to check huge folder size
Hello Guys, Am using the below script line to check the directory folder Size. $pth = "\\Share\MyFolder""{0:n2}" -f ((gci -path $pth -recurse | measure-object -property length -sum).sum /1gb)+" gb"...
View Articlearray elements
I created an array $users as follows$users =get-aduser -filter {DEPARTMENT -like "SE*" -and Title -like "Teacher*"} -properties *| ft name,department,title,office,memberof -autosizeand when I try to...
View ArticleHelp with powershell script
Hi everyone,I have this script that searches through a list on computers for the application Symantec. $computers=get-content c:\houcomputer.txt get-wmiobject -Class "Win32_Product" -CN $computers |...
View ArticleLogon Typ 3 and 8 in Eventviewer. Howto get remote IP
Hello everyone,I have a Windows Web Server 2008 R2 (As Info)i have a common issue about Netlogon Typ 3 with Ntlm. Eventviewer doesnt show the remote IP Adress in the log. I have tried to set my server...
View ArticleFormatting number question
I have this PS script that gives me back the top 5 processes consuming the most virt memory. I'd like to display the MB with not so many numbers to the right of the decimal point.Scripts*****#Top 5...
View ArticleNeed help with script to install application on remote computers
Hello,I have the following script to run an application on remote computers, the script runs indefinitely, I see the new folder created on the remote computer and the installation file copied there, I...
View ArticleHelp with CSV Output
I am trying to cobble together a script to compare two CSV files and output the difference to a third CSV. So far it does show me the difference between the two files, but my Output file is not in the...
View ArticleAzure PowerShell non-interactive login
An interesting topic and very important for automation scenarios is how to authenticate a PowerShell script by providing credentials non-interactively.Read More
View Article