Quantcast
Browsing all 21975 articles
Browse latest View live

Getting security permiisions and the groups

I have a script for extracting al ist of uses,and groups from a shared folder$project_folder = "\\foldername\servername" Get-Acl $project_folder |     ForEach-Object {         $_.Access | Add-Member...

View Article


How to get a list of folders and subfolders from a network share?

Hi,I am using the powershell code below to get a list of folders and subfolders from a share. This is just showing the foldername. Is there a way to show the full path? ie\\Server\Share\Folder...I...

View Article


Search AD Users for specific text contained within a field

I know this sounds very simple, but I think what I need is more complex than my Title makes it appear.  At least it is to me!  I tried to find the answer on my own but don't know PS well enough to...

View Article

Range Operator for first 2 letters of item

Hello all,Quick question about range operators in PowerShell. The following code uses a range operator to return all items under C:\ that start with A, B, or C:Get-ChildItem 'C:\[a-c]*' Is it possible...

View Article

Active Directory auditing

Hi, what kind of script would you make, if u wanna log changes like  " some user was moved from OU to another OU " ..Example: Yestarday some was in OU "ou=test,dc=contoso,dc=com"  and today he is in...

View Article


Get associated security group for each folder?

Hi,I am using the powershell code below to get a list of folders and subfolders on a network share. Is it possible to also display the associated security group with it? For instanceSelect-Object...

View Article

Clear out old messages in Exchange 2010 journal mailbox after messages are...

# THIS IS THE FIRST COMMAND THAT I RUN IN A SEPARATE .PS1 FILE. THIS SEEMS TO WORK FINE: New-MailboxExportRequest JournalMailbox -FilePath '\\dfsdr.dc.pud\PowershellEmailArchive\Journal.pst' # NEXT I...

View Article

Set-HybridConfiguration showing error

Hello,About my Environment:Single Virtual Machine (VM) in Windows Azure with following ports enabled for public and private.HTTPSTCP  443LDAPTCP  389PowerShellTCP  5986Remote DesktopTCP  58142SMTPTCP...

View Article


How to add data to a specific member of a PSObject

Lets say I have a PSObject collection that has three NoteProperties like this:WebServer         Website           Physical Folder----------           ---------            --------------server1...

View Article


How to get attribute with no value - "not set"?

Hello All!I have powershell script with following Filter:Get-ADComputer -Filter {LastLogonTimeStamp -lt $time -and LastLogonTimeStamp -like $null -and OperatingSystem -notLike '*Windows Server*' -and...

View Article

Range Operator Question

Hello all,I asked a question yesterday under the title of "Range Operator for first 2 letters of item" which was answered promptly and was much appreciated. I have since encountered another problem and...

View Article

Assistance cleaning up a script please

Hi all,I run a script to collect servers and list Auto services that are stopped.  It will also show which server is not responding.  The results though are done as it checks each server. This can lead...

View Article

Catch bad AD look ups

I'm attempting to write a small line a of powershell script that will check a csv of first and last names from AD and report their usernames. Everything seems to work okay, except it doesn't report...

View Article


Get-content illegal characters in Variable.

I am running a script that uses a list of sql server instances with port number eiather can be passed as a config file or connect to sql server and execute a stored procedure. But when i grab it from...

View Article

Get-Acl : The input object cannot be bound to any parameters

Hi I am trying to get a list of folder and permissions for network folders and I am getting the error Get-Acl : The input object cannot be bound to any parameters for the command either because the...

View Article


How to output a bunch of variables into a table.

I have the following script which works and now would like to output it to the console in a table (and later to a file). How do I do this?#http://ss64.com/ps/get-wmiobject-win32.html Param( [string]...

View Article

Unable to search by CSV Column name

When trying to search AD by a list of first and last names and output their usernames, I'm running the following script and receving an error. I replaced the $_.last and $_.first with a username to...

View Article


SQL server services status- powershell

Do anybody have powershell script to monitor listed sqlserver instances services and send an email alert when the services stoped stat? that results should store in database? 

View Article

Throw a message box when a special character is found...

Again,, thought this would be pretty easy just looking to throw a message box if a special character is found.. Using this starter code, it works if only one special character is used, but with...

View Article

Using powershell - Import-CSV | New-ADuser to bulk add users to new domain...

(at this point I am content with just adding a user through powershell, first and last name, then his domain login as first.lastname and same for pre-win2000 - BUT PLEASE READ ONHi, We are doing a...

View Article
Browsing all 21975 articles
Browse latest View live


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