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

.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


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

Solve PowerShell Dependency Within Function Problems

Q: I have a PowerShell file with a Desired State Configuration that relies on a module that I copy earlier in the script. When I try to run the file, I receive an error message saying the module isn't...

View Article

Powershell script to gather eventlogs from all Domain Controllers

I am trying to write a script to grab the last 5 days of application, security and system logs from all domain controllers. The script runs but only pulls the logs from the local server. The $Computer...

View Article

fifa coins online O50d 4icu IjRwE

But remember this girl ah, who told michael kors bags no wink yet. Yin Heng Kang Ling and Xiao Bin with two men go out into the stairs and walked straight. Sure enough, all the way on the face of the...

View Article


good tutorial websites on Power Shell automate Windows use case tests

I need to write some Power Shell scripts to automate Windows use case tests.  What would be the good tutorial websites please?

View Article

cheap jordan shoes ympwhz gaj bgeg

Among the distinguished look no trace of color, so only michael kors bags dare look SJF home Lord. Ms. Oda, welcome to Shuijingfang Li Jia also knowtemper, polite way. Direct that focus Tian Sisi eyes...

View Article


Wanting to compare 2 separate .csv files and ouput the differences to another...

I have two .csv lists, single column.  I want to read them both, compare them, and exportthe ones that do not have a match to another ,csv file.  Obviously one list has more data/records than the...

View Article

PowerShell 10961B Training – Top 5 Take Aways

I recently attended the Microsoft 10961B PowerShell training course. In the spirit of sharing, here are my top five take aways for those new to PowerShell:Read More

View Article


crating folder and removing files

Hi,I have a lot of logg files in a certain folder. The files creates every day. I need a script that create a folder every day. The name of the folders should be current date. Then the script shoul...

View Article

Ctrl+C and a prompt

I have a PS script that runs to gather info on remote servers, I'd like to be able to pressCtrl+c   and have a prompt  "would you like to terminate (Y/N)?"  and of course if you press "Y" then it...

View Article

Print only lines with a certain Character in column 1

I have a file that has a lot of lines.  I want to create a new file that has only those lines that have a certain character in the first column of each line.  If it isn't there skip that line.File...

View Article
Browsing all 8583 articles
Browse latest View live