Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Browsing all 8411 articles
Browse latest View live

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 Article


SMB3 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 Article

Image may be NSFW.
Clik here to view.

SSIS 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 Article

Retrieve 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 Article

Extracting 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 Article


Read 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 Article


2012 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 Article

Get 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 Article

Replace 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 Article

Script 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 Article


array 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 Article

Help 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 Article


Logon 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 Article

Formatting 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 Article


Need 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 Article

Help 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 Article

Azure 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
Browsing all 8411 articles
Browse latest View live