Quantcast
Browsing all 21975 articles
Browse latest View live

send results of Invoke-sqlcmd to an array

why doesn't it work... get a list of servers from a text file and it works.... $servers = (get-content .\serverlist.txt | ? {!$_.Contains("#")})foreach ($server in $servers){Invoke-sqlcmd...

View Article


Connect to Hotmail using Powershell

Folks,I have been trying to connect to Hotmail through Powershell. Can you offer any advice on how to accomplish thatThanks

View Article


Check if OS is 32bit or 64bit

Hello All,I hoping that someone might be able to explain and help point me into the right direction.  I'm trying to check for which version a machine OS as well check for a certain folder and for some...

View Article

System.DirectoryServices.DirectorySearcher: How to query Active Directory...

Hello,I am using a code similar to this to connect to Active Directory and do some queries. It works well with plain LDAP: $domaininfo = new-object...

View Article

Adding Global Groups to Domain Local through script.

Hi, I have a script from creating Local Domain groups from Global Security groups, now I want to expand that script so it automatically adds that Global group to Domain Local group.Here is the script...

View Article


Get Total DB size , Total DB free space , Total Data & Log File Sizes and...

how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

View Article

assignment a user's password by the user himself

Hi. We have 2008 R2 domain network. And we have Windows PC and Apple MAC.Is there any way to let MAC users to assignment at himself password.As example: MAC users can to login in Exchange OWA and then...

View Article

Image may be NSFW.
Clik here to view.

PSWA dsquery user: user has not been authenticated.

Hi. I want to configure PSWA. But something wrong. I can to use simple search query: dsquery userswhat is missing?I've tried to set in web.config  authentication mode="Windows"  but, i can't connect to...

View Article


Find certain lines in file and registry keys in registry on all domain pc's

I was given a task to make a report for all windows 7 pro with sp1 computers in domain. That report should have the following columns: computer name, ip address, particular lines in .ini file which is...

View Article


Get lines starting with a specific word and export it in csv

Hello,I have a text file of an application that sometimes goes in error.When the error occurs we have something like that:12/08/2013 21:36:15 - ERREUR     12/08/2013 21:36:15 - erreur open connexion :...

View Article

set full permissions to shared folders

I've created some folders using the next script:New-Item -Path H:\ICT -type directory | Out-Null New-Item -Path H:\Administratie -type directory | Out-Null New-Item -Path H:\Verkoop -type directory |...

View Article

Can't remove PowerShell 3.0

I recently found that my backup scripts for SharePoint Foundation aren't working because PowerShell 3.0 was installed.  I've attempted to remove the Management Framework and the Integrated Development...

View Article

Power Shell Script to pull all deactivated users

Has anyone written a script to pull a list of deactivated users?my goal is to validate sharepoint administrators in AD to see if they are active or deactivated. Any insight would be appreciated.

View Article


Transforming a for-loop in PowerShell code

In the thread Use Same Excel Object in Start-Job as Main PS1 .../en-US/2f4400af-cd31-44ba-b2c8-cafa2317bf5f/use-same-excel-object-in-startjob-as-main-ps1?forum=winserverpowershell, there's a for-loop...

View Article

Use Same Excel Object in Start-Job as Main PS1

I have hundreds of Excel files and one main file that has links to each of these files, but in order for the data to be pulled into the main excel file I need to have every file opened within the same...

View Article


How do I search a spreadsheet for a list of URL's | then search those URL's...

Fist, I should mention I am not a programmer but am eagerly learning powershell!I am looking for an automated solution to accomplish what I am currently doing manually.  I need a script that would...

View Article

Check State of Scheduled Task

Hi,I am newbie, and am trying to a find a way in Powershell that can do the following:Conect to multiple computersCheck the state of a scheduled taskIf the task is disabled, enable it and log it to a...

View Article


Update AD Attribute using script

Hi Team, I have a task to update ad Attribute of 1000 users in one go. Task:- we have 1000 users in our AD, I have to update IP Phone information (under Telephones tab) in one go. I can not do it...

View Article

Delete Files older then X with Log

Hi all,I have found a lot about that topic but nothing was solving my Problem maybe you can help me. The Target of the script is to clean up a Public share drive with Files they are older then 2day's...

View Article

Help with workflows and custom objects

Hi!I want to create a script or workflow that will inventory computers C: and D: drives. I would like to use a workflow so i can query many computers simultaneously.Unfortunately I does not get the...

View Article
Browsing all 21975 articles
Browse latest View live