Quantcast
Browsing all 21975 articles
Browse latest View live

Need this data written to SQL table without having to create an actuall CSV...

Hello all I am needing to write what is in the DATA section to an SQL table. I have included the Powershell code that I am using to get the objects shown in POWERSHELL DATA GATHER section. Then I want...

View Article


Get-ADGroupMember - raising "MaxGroupOrMemberEntries" limit produces error...

Hi out there,actually i have a problem with the Powershell command "Get-ADGroupMember". One customer has a few groups with more then 5.000 members, so this command will run into the...

View Article


Convert CustomAttribute from Text to Date - setup 2 date range filters

Background: We have setup an Active Directory OU called Quarantine to temporarily store user accounts that have just been terminated before terminating their office 365 mailboxes licenses, legal holds...

View Article

pipeline input - performance advantage using $_ in PROCESS block vs $input in...

Hello,Are there performance reasons for using the pipeline input and $_ in a PROCESS code block as opposed to using pipeline input but just using the $input variable in the END code block?My assumption...

View Article

Why does my powershell script only connect to the default SQL instance?

Hi!I have a Server with 2 SQL instances on it. 1 is a deafult instance and the other is a named instance:Servername       SPINGDefault instance     SPING\MSSQLSERVERNames Instance     SPING\PARISWhen I...

View Article


Compare files based on LastWriteTime if basename matches

I have two sets of files, one folder contains one filetype and another folder contains the other filetype.Folder 1 has .filetype1 Folder 2 has .filetype2 Every file in folder1 has a matching partner in...

View Article

Automate set folder permissions

Hi Id like to automate the setting of folder permissions on folders during the PC build processI need for other users to ru the script and the default pc image will have powershell 1 and the...

View Article

Creating a Sym Link Between two Folders?

HiJust downloaded a script to help link two folders, but not sure if it worked or not.  Not getting any feed back from the-Verboseparam.Function New-SymLink {<# .SYNOPSIS Creates a Symbolic link to...

View Article


Manipulating data from select statement

I have the following power shell which reports on current Activesync partnerships. I use the select statement to pull 4 fields that I am concerned with and it works but I am looking to manipulate the...

View Article


How to get which domain a user belongs to via powershell

Hi Guys  I have a forest that contains many subdomain, like Forest Root: contoso.comChild Domain: a.contoso.com ; b.contoso.com and so on, now I'd like to write a powershell query to find out a which...

View Article

NEED TO ENABLE BULK USERS on LYNC 2010 WITH POWERSHELL using SAMACCOUNTNAME

Currently I am using following command;Import-Csv C:\Scripts\Users.csv | ForEach-Object{$varUserId=$_.userid; Enable-CsUser -Identity $varUserid -RegistrarPool gn-a-if-lync01.iyogi.net -SipAddressType...

View Article

Can this be done? Use ADSI logged in as a Local User to modify Domain User...

Scenario:- Newly imaged PC not joined to the domain logged in as a Local Admin (Username = User1)- Run a batch file to start a PowerShell Script as a Domain User (net use etc.. powershell.exe...

View Article

Powershell script: Output file (results) to come out on same line

I have a powershell script that checks security permissions in folders and writes the outcome to a csv file. With mine at the moment its writing each new file to a new line so its coming out like this...

View Article


how to put information on "Managed By" attribute, for groups on a specific OU?

Some people asked for a little script/command, to search for all groups on a specific OU and put some  info info  in "Managed By" attribute (the LDAP name of a App OIM Server )I´m not particulary...

View Article

Output all DHCP reservations to file with PowerShell

I used this "script" to make a text file containing all DHCP reservations, including MAC addresses.  This does what I need but feel free to comment on improvementsGet-DHCPServerV4Scope | ForEach...

View Article


How to add an embedded image to email?

Hi, I am completely stumped. I am trying to add an embedded image to notification email. The only scripts i can find are using .net to create a new email...

View Article

Dynamically find direct URL for Silverlight download

Greetings! I have a script that (among other things) downloads and installs the 64 bit version of Silverlight. Right now, the download is a hard coded URL. Every time MS creates a new version, the URL...

View Article


ACL output CSV file to display security permissions include _"Allow Full...

I have my Powershell script that displays security ACL permissions and outputs to a file. At the moment my output is only displaying "Allowed Inheritance" but i want it to display like this...

View Article

shared calendars

We are running Exchange 2007, with Outlook 2010 as clients.  We have several shared calendars, but I can't seem to located them / access them in Outlook 2010.  When I Click on Open Calendar and the...

View Article

Export CSV Cmdlet goes to infinite loop

I'm trying to aggregate data from various CSV's into one using the following line of code “ ls -n *.csv | %{ ipcsv $_} | epcsv allinone.csv -NoTypeInformation “  It worked fine until I changed the...

View Article
Browsing all 21975 articles
Browse latest View live