Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

Powershell grab AD computers and current user

I feel like I'm super close with this but my PS skills are still very limited (just started learning it 3 days ago..)What I'm looking to do is search my pre-selected OU for all computers and grab the...

View Article


5 PowerShell tricks every SysAdmin should know

First introduced in 2006, PowerShell replaced the command shell and earlier scripting languages as the preferred task automation and configuration management framework for Windows environments. Built...

View Article


Computers Not Showing Serial Number

Has anybody ran a PowerShell command to a remote computer to find a serial number and place where the number would go is blank.  The command I use is Get-WmiObject -Class Win32_Bios -ComputerName...

View Article

Powershell: Passing a parameter out side a FUNCTIOn, into the bodyof a script

I have a script with a FUNCTION called GetProd. The FUNCTION allows users to view a list of choices, type the desired choice, checks to verify the choice typed is valid, and then sets a parameter...

View Article

AD new-aduser with Powershell

I have a script for creating new users but for some reason the homedrive changes its location to c:\users\administrator rather than the location stated in the csv file which is a dfs location e.g...

View Article


Performance issue - Console vs ISE

I have a script that runs though several thousand loops.When I run the script in the ISE, it is fairly fast. However, I am going to have to put this script out for a couple of users to run, so I create...

View Article

PowerShell Primer

I've always been a fan of using command line, but with PowerShell giving you the ability to do everything you do in command line plus a great deal more, I'm wanting to move that way.  Can anyone...

View Article

Invoking powershell from a web page

OK, so here's a bit of an ecclectic issue.I have a PS1 script that finally works beautifully.I have four AD domains, and the script iterates a query across all four domains to search for all virtual...

View Article


Get User Account Status AD

Need a powershell script that will query AD through input from CSV and verify if user is active or disabled and output the result to CSV. I came up with this. #$users = Import-Csv...

View Article


Powershell to Swap Config Settings. :D

Powershell#Specify what assemblies and what...

View Article

PowerShell - finding your users

The end goal of this post is to find what workstations a user is currently logged into.So what I've done in the past is install the Quest Active Roles and use a script like this. The Active Roles...

View Article

Image may be NSFW.
Clik here to view.

Format Html page in 2 colums

Hi, i have this output file result.html and My goal is to combine the two columns for a better view, how can i do with powershell? the end result I would like it to be like in the picture.This is the...

View Article

Check Files that have not been deleted from delete Script -

Hi All,I have the below script that will delete files when certain conditions are true and then will also create a log file of what files were deleted.I need toalso add a section that once the deletion...

View Article


Fetch last 3 userlogins from serverlist.txt

Hi,I need some powershell help with a special custom script, and really need some help since I am not skilled in powershell coding.I have a list of 225 servers (OS 2003, 2008 and 2012) and I want to...

View Article

replace some description in AD property

Hi All,[Need Help]I'm new in PowerShell programming, and I have a problem with replacing AD property on my Organization, may somebody can help me.ex :description : MDK0001description :...

View Article


Image may be NSFW.
Clik here to view.

Powershell script to copy folders and files

Hi All,I am trying to create a powershell script that would make my job a lot easier. Any help would be greatly appreciated. Okay the task that I have in hand is to copy folders and files from one...

View Article

Remote Management Commands in Powershell - Which Do You Use?

I stumbled across this today:"One of the more useful features in PowerShell is remote management. Several different remote management functions exist ...... In order to use the remote management tools...

View Article


HPSSA Cli output

anyone know how to output data to a file in HPSSA? i usedText| out-file c:/test.txtbut didnt work and got an error. thanks for the help all.

View Article

Powershell Window closes after script runs

I'm trying to make this script easily usable by other people, however I noticed when I right click to "Run With PowerShell"It will do the first line and prompt for the usernameThen after taking the...

View Article

Catch a Specific Value inside a string and comparison

Hi, want to catch the single value "Error: 0" in these line, that iside a txt file, and then check if greater than 0.The most problem is catch the specific value, how can i do...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>