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

How do you know PowerShell code?

So I have been wondering and I am sure this is a very easy explanation. Which somehow I have overlooked a few times. I know its out there, maybe I just forgot....So lets say you have a...

View Article


PowerShell - Get names in specific OU and MemberOf

I need help!I want to know how I can get this information:domain/HERE/Jhon PerezMember of: TESTI need just need Jhon Perez and HERE and TEST values.Show me the names(Ex. Jhon Perez)  Where OU = HERE...

View Article


Windows 10 Apps removal

I am guessing this is less of a Windows 10 question and more of a powershell question, but we are testing Windows 10 in our company and trying to remove all installed apps (including app store) using...

View Article

PowerShell - Using Excel Macro

I want to use this Power Shell script into a Excel Macro.Get-ADGroupMember TEST | ForEach-Object { Get-ADUser -Filter "SamAccountName -eq '$($_.SamAccountName)'" -SearchBase 'OU=Here,DC=domain,DC=com'...

View Article

PowerShell AD help - Connecting to AD

Hey guys I'm trying to expand my PowerShell knowledge but I'm running in to a bit of an issue when Itry to connect to AD. Below is the command I'm running and the following error message. Any help is...

View Article


PowerShell Script to Find & delete specific extension

Hey All,I am finding script for search files with extension with size of that searched file. after that want to delete that all searched files (need to ask for confirmation for deletion). after...

View Article

Powershell - Get-Hotfix on multiple systems

Hello,I need to run Get-Hotfix on a large amount of systems to find gaps in patching, I am still very new to Powershell so i do not know how to make the Get-Hotfix command pull from a list of systems...

View Article

Delete User pofile if no longet in Active Directory

I am trying to come up with a solution to list the users in the local admin group on a list of servers. and select only user with names like UN12345. then check active directory to see if the account...

View Article


Image may be NSFW.
Clik here to view.

List of commands for CMD & PowerShell

Does anyone know of a COMPLETE reference collection of all commands that can be used in the command line interface as well as with PowerShell?  The closest I have found in in the RTFM book, but are...

View Article


Recursively list file paths to excel column separating with delimiter

Hi guys,I'm trying to export all .jpg file paths of a directory recursively with a separating delimiter (chose pipe character) such that each sub folder's file contents (.jpg file paths) are listed as...

View Article

Why does this not work on Win8.1?

This script works on my Windows 7 machine, but not on Windows 8.1 (at least not on mine).https://technet.microsoft.com/en-us/library/ff730942.aspxDoes anyone else here get the same thing, and/or can...

View Article

Creating a 'future' email

This thread partially refers: http://community.spiceworks.com/topic/1231861-why-does-this-not-work-on-win8-1My aim is to create a script thatprompts for the date an email is to be sent, set the time...

View Article

How do I store a password in send-mailmessage script

I'm trying to figure that out. It's a basic...

View Article


Import-Module ActiveDirectory really slow

I'm having a really frustrating issue. I was on Win 8.1 and there were no problems loading the module. Now I've downgraded to Win 7 (inline with company's new deployment), with Powershell 4, and it...

View Article

Backup Exec 2014 and BEMCLI : System.OutOfMemory Exception

Hi there folks,I've made a daily check script a few times ago, that retrieves the backup infos from BE2014 (Slot, tape number, and other stuff) and was working great. Was.We made some changes on the...

View Article


Add logging to Powershell Script

Hello EveryoneI am working on the following script and I need to add some kind of logging for what has been deleted. I am not very strong in this part of powershell and hoping for some tips.I would...

View Article

Image may be NSFW.
Clik here to view.

PowerShell Script to Monitor and Alert files/folder changes

Hi All,I needed a script to in PowerShell to monitor and send Alert in case of any change.The requirement is similar to this link...

View Article


Report Function

Hi Guys,So I have the following function and for-loop which outputs to the host one line at a time in a nice table format. However when I add a fifth column, it reverts to being a list. Can anyone...

View Article

Powershell Output adding Curly Brackets

I am trying to get output using -groupby and using an array to populate the -groupby. Everything works like it should except the array members are coming out like ItemName: {}Is there a way to escape...

View Article

Powershell - Can't find the logic in here

Morning fellow Spiceheads. As i got out of bed this morning with the wrong foot first i'm having a brain bsod at the moment where i can't find the login in doing something i've been thinking of for a...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images