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

Powershell - Post data in HTTP Web Request

I am working on a script to backup my pfSense configuration and looking at the documentation here: https://doc.pfsense.org/index.php/Remote_Config_Backup under the section "Pulling for 2.0" it should...

View Article


Image may be NSFW.
Clik here to view.

The Dark Power of Windows PowerShell

All right Spiceheads...I'm not going to pretend ot know Powershell.  But I know a lot folks who do.  And they are pretty serious about Security.  Why So Serious?  Because there are some scary dudes out...

View Article


PowerShell: Killing Sessions at login

I have a script that tracks user's logins, it gets username, IP address and the date and time.  I was able to compare the IP to a list of IPs, and the username to a list of usernames.  Now if the IP...

View Article

Any suggestions on Powershell books for learning as a novice?

I have no scripting language under my belt at all. So i would need the basics.

View Article

Passing Powershell Object to Diskpart

Spice Community,I'm having an issue with a Powershell script block that should be passing a drive letter to diskpart. Here's the script:Powershell 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19...

View Article


Image may be NSFW.
Clik here to view.

Utf8 Problems

I got a nice script that is shared at this link:http://community.spiceworks.com/scripts/show/2418-gui-ps-new-user-automationThe script works fine.The problem i have is that the company I'am working for...

View Article

Writing results to csv

Hi everyoneI am running on fumes today, and I am having a bit of an issue.  I have the below script that we are using to compare two CSVs, ping those that exist in both and return a DNS name, and if...

View Article

hashtable add a value

Hello togetheri write a script which gives me all the mobile phone and the OS-Versions of my firm.And at the end the script should count how many mobile phones have the respective OS-Versions.And my...

View Article


how to powershell

Hi,I want to know if it is possible to execute an .exe file with switches on a remote computer using powershell? Or how can I create a powershell script to install a software on a remote computer with...

View Article


BackUpAndClearEventLogs.ps1

I downloaded this script from here: http://technet.microsoft.com/en-us/magazine/2009.07.heyscriptingguy.aspx and it does not work as described in the article. Running it on a Windows 7 pro ....

View Article

Powershell get-date +7 days

I have a Powershell script that replaces certain strings with another string based on the date.  All but one work OK.  I need to be able to set a variable to a date 7 days ahead.  It has to be in the...

View Article

Need a scrip that can rename a list of files that are located in different dirs

Hello Community,I have a list of files like so:D:/dira/dir/dir/file.docD:/dirb/otherdir/moredir/file.xmlD:/dirc/anotherdir/moredir/file.xlsetcI need the files in this list to be renamed to...

View Article

Powershell script to create subfolder in all folders, but not create if existing

So I already have this: ForEach($dir in (Get-ChildItem 'F:\Clients\myapp\utah-catholic\' | Where{$_.psiscontainer})){    New-Item "$($dir.fullname)\History" -type directory | Out-Null}What I need to do...

View Article


Powershell script - Users pwdlastset

Hi,Can anyone knock up a powershell script that pulls up users who have had their password reset in the last X hours. I can't figure out the syntax to do it.

View Article

How to add bulk users into a new group in AD with Powershell v1.0 on XP

Hey guys, looking for a way to add over 150 users to a new group in Active Directory. Currently using XP, and have Powershell v1.0. Just not too familiar with powershell. I am not familiar with...

View Article


What was your PowerShell project this week? 4/11/2014

Martin normally posts these, but it doesn't look like he go around to it. Looks like this will be round 3 of our week in review of ongoing PowerShell projects.I worked on a script that queries a list...

View Article

Authenticated SOAP request from Powershell to HP uCMDB

I'm trying to create a Powershell script to submit a SOAP request to HP uCMDB so I can retrieve the CIs from it and process them.I have got a template XML file from uCMDB itself which should allow me...

View Article


Simple powershell help

Objective: I want to pull basic information used for inventoring new workstations. These include IP settings, User accounts (Passwords would be nice), OS info, HDD info.I have made this code from...

View Article

Image may be NSFW.
Clik here to view.

Run Powershell script for all users in Active Directory.

Powershell 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66...

View Article

Powershell script to check computer group membership

I need to create a powershell logon script that checks the computer being logged into is member of a specific group. If it is, then run a specific program.I've got this so far but am struggling to get...

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>