Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Modules
QuickClick
Scripts
Snippets
Videos
Library
»
Script Library
»
File System
»
Slideshow
File System Slideshow
Share
|
Browse Library
Module Library
QuickClick Library
Script Library
Active Directory
BizTalk
Citrix
Clustering
Desktop
Exchange Server 2003
Exchange Server 2007
File System
Group Policy
Internet Information Server (IIS)
Local Accounts
Logs
Microsoft Office
Microsoft Team Foundation Server
MySQL
Networking
Registry
Remote Desktop Services
Remoting
Security
SharePoint
SQL Server
System Center Virtual Machine Manager
System Center Configuration Manager
System Center Operations Manager
Tutorial
Terminal Server
Using .Net
Virtual Server
VMware
Windows 7
Windows HPC
Windows Server 2000
Windows Server 2003
Windows Server 2008
Windows XP
WMI
Misc
Snippet Library
Video Library
Members Only
Tags
[wmi]
Age
backup
check
clean up
Combine-Object
copy
create
Disk
drive
drive letter
DriveInfo
DriveLetter
DriveType
exists
File
File Server Script
Filter
folder
FreeSpace
Get-ChildItem
get-date
GetRelated
Win32_LogicalDisk
WMI
View more
Script for File Server
$root
=
[
ADSI
]
"LDAP://OU=India,OU=Sites,OU=Acct-Users,DC=corp,DC=Test,DC=com"
$Srchr
=
new-object
System.DirectoryServices.DirectorySearcher
(
$root
)
$users
=
$Srchr
.
findall
()
foreach
(
$user
in
$users
)
{
$Path
=
$user
.
path
$Details
=
[
ADSI
]
"$Path"
$Details
.
sAMAccountName
$FName
=
$Details
.
sAMAccountName
$Path
=
"D:\Public_Folder\$FName"
New-Item
-Path
$Path
-type
directory |
Out-Null
cacls D:\Public_Folder\
$Fname
/
E
/
R Users
cacls D:\Public_Folder\
$Fname
/
E
/
G rri\
"$FName"
:F
}
Loading...
Script for...
Console Profile...
Log start &...
Smart backup...
Uncompress...
Monitor the...
1 To many File...
File Search...
Finding large...
MakeAlphabeticDateOrder
View all files
Copyright 2011 PowerShell.com. All rights reserved.