![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
Activating an directory sharingthis thread has 3 replies and has been viewed 4362 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
HI
Using the Powershel lfor Windows 7 SP1, how do I set the users/groups with their permission to share a directory and then how do I activate it? THANKS BYE |
|
#2
|
||||||||||
|
||||||||||
|
__________________
Tom Jones MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+ PhD, MSc, FIAP, MIITT IT Trainer / Consultant Ossian Ltd Scotland ** Remember to give credit where credit is due and leave reputation points where appropriate ** |
|
#3
|
||||||||
|
||||||||
|
\
Quote:
Code:
Function NEW-SHARE ($Foldername, $Sharename) {
# Test for existence of folder, if not there then create it
#
IF (!(TEST-PATH $Foldername)) {
NEW-ITEM $Foldername -type Directory
}
# Create Share but check to make sure it isn’t already there
#
IF (!(GET-WMIOBJECT Win32_Share -filter “name=$Sharename”) {
$Shares=[WMICLASS]”WIN32_Share”
$Shares.Create($Foldername,$Sharename,0)
}
}
So, could you help me again? THANKS BYE Last edited by balubeto; 2nd June 2012 at 19:40.. |
|
#4
|
||||||||||
|
||||||||||
|
Amazingly, the same site,
http://www.google.co.uk/#sclient=psy....,cf.osb&cad=b
__________________
Tom Jones MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+ PhD, MSc, FIAP, MIITT IT Trainer / Consultant Ossian Ltd Scotland ** Remember to give credit where credit is due and leave reputation points where appropriate ** |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error Activating OCS 2007 R2 Standard | nukunu | OCS / Lync Server | 0 | 7th February 2011 12:33 |
| Activating text-to-speech on non-English Win7 Ultimate | chermesh | Windows 7 | 0 | 10th October 2010 21:03 |
| Activating Office 2010 with KMS (split from Server 2008 forum) | masorrell | Office 2010 General Issues | 3 | 4th June 2010 12:52 |
| SBS 2003 Std. freezing after activating OS and 5 CAL's | asiddhu | SBS 2000 / 2003 | 1 | 27th April 2005 03:36 |
| Activating XP | BPM | Windows 2000 Pro, XP Pro | 6 | 25th January 2004 08:29 |