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

Help with Processes

I have a barcode clocking system in my company. There is a "Main" program that records the data coming from the terminals. It also starts "child" programs that run the terminals. The problem that I am...

View Article


Find date in a file name and split it off

I'm writing a powershell script to organize photos and videos for me. This has become a massive endeavour as it's going to organize my entire collection (and I'll release it here when I'm done for...

View Article


need help merging multiple .ini/.txt files.

I have 211 ini files in one folder and 211 .ini files in another. both folders have the exact same filenames.  I want to merge the data in each file to its matching file name in the other folder....

View Article

Find users from AD Get their Homedrive & search specific extension files

Hello Tech Guys :),I done this following script to find users & their Home Directory from domain.After that i want to find some specific extension files from their Home Directory with all searched...

View Article

Powershell script to recursive delete folders.

Due to an Information Governance issue i need to recursively delete all My Documents folders that have been inadvertently stored on a workstations C: drive underC:\users\%username%\My DocumentsI have a...

View Article


PS using variable inside text

gents,I am pretty new to Powershell so sorry for that question.I like to create a file and like to name it using a variable reference f.e.  \\my-pc\Temp\$variable_export.pstI set the variable and can...

View Article

W2K12 PS cmd Set-PrintConfiguration does not work

Hi all,I am trying to run:Get-Printer -Name *Xerox* | Set-PrintConfiguration -DuplexingMode TwoSidedLongEdge -Color $falseThis is supposed to change all Print Queues to Black & White and Duplex...

View Article

List all calenders a user can access....Powershell?

Hi,I have been researching but haven't found a definitive answer as yet - wonder if anyone could assist.Is there any way to export a list of all calendars a user can access? I presume this would be...

View Article


Image may be NSFW.
Clik here to view.

powershell get-dhcpserverv4scopestatistics returning strange numbers

I have noticed, when I run the commandlet listed in the title, it says there are 11 addresses in use.  But in the DHCP MMC console, I only see 2.  Any ideas as to why it's returning way more than are...

View Article


create AD contact through powershell

I am trying to figure out how to create an AD contact with Powershell. I have part of the command but I can't figure out how to set things like the first name, last name, and telephone number.Here is...

View Article

AD usernames Compare 2 AD fields and change username

Good afternoon Spiceheads, its thursday my brain has given up on the week 3 days ago.That said I have a nice indent going on a wall as I continue to work on a little project.What I am trying to do is...

View Article

Delete folder contents

Trying to learn/use Powershell to delete the contents of a folder.  The folder is buried a couple levels deep under AppData:"C:\Users\USERNAME\AppData\Local\FOLDER1\Folder2\Packages"Each user has their...

View Article

Powershell issue

So I have a PowerShell script that I want to run on startup. However if the conditions are met already I want the script to do nothing and just exit. I'm not sure how to do this. I am still fairly new...

View Article


Powershell Question

Hey all,Working on a script today and somewhere along the line, its changing an "answer" in my script.For example, I have it look ranges of numbers (if ($number -ge 15 -$number le 17) {$othernumber...

View Article

Powershell create scope dhcp with multiple exclusions and options

Hello,I'm working on script to create from csv file all scope with exclusions and options but no possible to crate multiple exclusions :file csv...

View Article


Powershell -contains problem

I'm running through a script that grabs a part of a webpage and compares to current date to make sure the page is current. I have the strings below, and am basically just checking to see if $time...

View Article

Image may be NSFW.
Clik here to view.

Disk Space report with Google Charts

Hi guys, is it possible to make a powershell script report that checking all partitions in a server and display something like this ?

View Article


Image may be NSFW.
Clik here to view.

Get-VpnConnection

Learning about the powershell cmdlet Get-VpnConnection.By runningGet-Help Get-VpnConnection-examplesI developed a question.Example 1 states thatGet-VpnConnection will get all available vpn...

View Article

How do I catch a Powershell Access Denied error?

Powershell$computers=Get-ADComputer-Filter'OperatingSystem -like "Windows Server*"'-Propertiesname$tableFragment=Get-WMIObject-ComputerName$computers.nameWin32_LogicalDisk-ErrorActionSilentlyContinueI...

View Article

PowerShell Questions

Have two Questions about this code:Textfunction VerifyUser($UserName){ Get-Mailbox $UserName | FL Name,PrimarySMTPaddress Write-Host "Is this the correct user account?" -f yellow $response = Read-Host...

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>