Script to install and enable file and printer sharing windows 7

Hello
I posted this question on the Microsoft Partner Windows 7 forum and the support person told me that I should post it here.
I have a Customer that was running Novell.  We will migrate them to Active Directory.
The question I have is.  they did remove the file and printer sharing service on their Windows 7 workstations.
Is is possible to have a command line or a script to install and enable the file and printer sharing for Microsoft Network?
We need this enable in order to install the SCCM client remotely
Greetings
Gaetan Labrecque

How are you going to connect to the workstations?
File and print sharing are not needed for Group Policy to work.  GP can be used to re-enable file and Print Sharing.
You will also  need to start by joining the machines to the domain.  That will be very difficult unless all have PowerShell and are configured for WinRM.
This can be somewhat accomplished by using VBScript remotely but will require a very sophisticated admin to set up and debug in your environment.  I recommend hiring a consultant who has experience in conversions or is a master VBScripter in a domain.
There is no easy answer.  It is not about File Sharing.
Here is how to add roles and features with PowerShell:
http://technet.microsoft.com/en-us/library/hh831809.aspx
¯\_(ツ)_/¯

Similar Messages

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

  • What is the name of the folders which are your backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer

    what is the name of the folders which are the backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer, authorize it and sync with Iphone 3Gs and Ipod 5th gen.
    I

    I second the whole iTunes folder approach.
    If for some reason you have split the media folder from the library files then the media folder needs to restored to the same path it used to have while the library files can be copied into the music folder of your new profile.
    If in dobut, backup up the entire Documents and Settings folder before wiping the infected drive, but be selective about what you restore as many viruses drop active components capable of reinfecting the compuer in the temp folders and internet caches. It is much easier to backup more than you need than to discover after the fact that you no longer have access to some vital project you'd been storing in a folder on the desktop.
    tt2

  • When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

    When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

    When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

  • How do I enable cookies in 3.6.6? Privacy menu in Tools - Options do not have Remember History and Enable Cookies and Exception button. Again, verison is 3.6.6.

    How do I enable cookies in 3.6.6? Privacy menu in Tools - Options do not have Remember History and Enable Cookies and Exception button. Again, verison is 3.6.6.

    To see all the History and Cookie options, select: Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"
    See [[Options window - Privacy panel]] and [[Cookies]]

  • HT204266 Cannot access itunes store from itunes - says to check internet connection.  I have internet connection.  I've unistalled ALL itunes files and associated files, and reinstalled?

    Cannot access itunes store from itunes - says to check internet connection.  I have internet connection.  I've unistalled ALL itunes files and associated files, and reinstalled?

    Try this:
    1. Settings>General>Date & Time>Turn off set automatically
    2. Set date one year ahead
    3. Go back to iTunes and try again.
    4. You will get the same error.
    5. Go back to settings general date and time and turn back on 'set automatically'
    Try connecting to iTune Store again.

  • WRTU54G-TM no file or print sharing

    Ever since swapping out my Linksys 54G for this t-mobile/Linksys router I no longer have file and print sharing.  I have gone around to all of the laptops and the one wired desktop and reinstalled file and print sharing.  I have turned off all  firewalls and even (just long enough to see if it would make a difference) all anti-virus.  None of the computers can see each other and nobody can print to the printer on the wired desktop.  Linksys support has consisted of people reading scripts and ignoring what I have said.  For example, ME: "I have even turned off all of the firewalls."  THEM: "Have you turned off any firewalls?"  I also get helpful comment such as, "The router supports file and print sharing."  I cannot get connected to a tech who is not reading from a script.  I am not a beginner.  I began working in the pc industry back in 1984 and I really do know how to do this stuff but I can get stumped and I am really stumped.  I am tempted to bridge this router and put in something that allows print and file sharing.  Any ideas?  Please?

    As your all the computers are able to go online and are connected to your Router. This first thing which you need to check is are you able to Ping your computer from the other computer? If you are getting the reply messages then you need to Re-map the Network Drivers on your Computers again, and make sure all the computers are in the same Workgroup..
    If you are getting the Reply messages, when you ping your computer from an another computer, Click on Start - Run - now type ( \\IPaddress of the Computer) and click Ok. This will display you the list of Drivers which you have shared on that Computer, Right click on it and select "Map Network Drive" and click on Finish. This will map the drive of that computer to this computer and you should be able to tranfer the files. 

  • Windows 7 GPO Script - Enable file and printer sharing

    Hello,
    I'm trying to activate the Advanced File and Network sharing bia script (as there is no GPO option to do this)
    The script is simple : 
    netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
    netsh advfirewall firewall set rule group="network discovery" new enable=yes
    netsh advfirewall set currentprofile state on
    in .bat and .ps1 it works fine when logged in to a computer with admin rights. I want to run this script on the computer level via GPO. The GPO applies properly, but the settings aren't changed. Any ideas on getting this to work?
    Environment is the following : 
    DC is WinServ 2008 R2, test machines : Win 7 Pro x64
    Test OU with Inheritance disabled, GPO for testing enforced with no other parameters apart from this Computer Startup script. User and Computer account are in the Test OU.
    gpresult shows the GPO is applied, but no data is available under Computer or User configuration. the script is stored in the correct sysvol location.

    Hi,
    Checkout the below thread on similar discussion,
    http://social.technet.microsoft.com/Forums/en-US/b193e8a9-9b2a-4993-bd74-836c65c51dc3/gpo-with-a-startup-script-is-not-working
    Regards,
    Gopi
    www.jijitechnologies.com

  • BEFW11S4 with Westell/Bellsouth DSL, and wanting file and print sharing

    I have configured the BEFW11S4 to share the DSL connection with Ethernet to home PC, and wireless to laptop.
    How can I configure this to also allow the laptop to connect to the home PC for file and printer sharing?
    Sorry if the is discussed elsewhere, im noob here and couldnt find anything applicable.
    Thanks!
    J

    Check IP on each PC: For example:
    PC1: 192.168.1.100
    PC2: 192.168.1.101
    Ping 192.168.1.101 from PC 1 and ping 192.168.1.100 from PC2... see which replies...
    If both give out positive replies... then that is not a router issue but PC issues. Might be firewalls.
    Message Edited by sharkbyte on 02-20-200701:32 PM

  • Strange noise and corrupted files and trouble fixing

    hi. forgive me if someone's answered this already, but my eyes are bleeding reading through all the comments without finding a fitting answer. my ibook g3 dual usb has been great all these years. every once in a while i get the "unable to mount" question mark folder at startup and have been able to fix it using the disk utility first aid stuff that came with my computer. but i've also had trouble in the last few years with corrupted files paralyzing my computer anywhere from a few seconds to hours till i have to force shut down. when my computer comes upon a corrupted file it starts making this slight whiny grinding noise that happens as a series of noises - like eeeer eeer eeer eeer eeer - over and over. it immediately stalls all functions of the desktop/computer.
    this last time, it happened while downloading a .pdf. unfortunately, after force shutting down, i got the question mark folder when i started back up and none of the utilities or norton disk doctor have been able to fix it. i tried running the hard disk testing utilities and disks, and it keeps saying the hard drive is fine. but whenever i run disk recovery with norton i suspect it comes upon corrupted files and starts with the grinding noise. i'm trying not to completely reinitialize the hard disk until i know i've tried everything. i just want to recover a few things, but i don't know how to isolate the corrupt files to trash.
    under the repair function of the disk first aid, it says theres some kind of pdef problem or something, and that it cannot repair. DOES ANYONE HAVE ANY IDEA WHAT I SHOULD DO!!!! P L E A S E. i feel like i've tried everything, including the custom loading of softwar install....
    thanks

    Hi, and welcome to Apple Discussions.
    The iBook would have come with the first version of OS X (likely OS X 10.0.3) installed on it. Using Norton DiskDoctor on any hard drive that has an OS X volume on it can actually cause hard drive corruption. DiskDoctor also reports the OS X files as "errors," so any "errors" it reports are not to be believed (although, as I said, using it can actually create corruption).
    Could you please report the exact message you get when trying to repair the hard drive using Disk First Aid from the Install CD?
    You may want to try a command-line method called "fsck" (for "file system check") to attempt to repair the hard drive. To use fsck, you have to run it from the command line. Unlike using your trackpad to open an application to do something, you'll need to type a text command at the prompt (#) to tell fsck what to do. To use fsck:
    1. Start up your computer in _single-user mode_ to reach the command line.
    2. At the command-line prompt, type /sbin/fsck -fy
    3. Press Return. fsck will go through five "phases" and then return information about your disk's use and fragmentation. Once it finishes, it will display this message if no issue is found:
    ** The volume (nameofvolume) appears to be OK
    If fsck found issues and has altered, repaired, or fixed anything, it will display this message:
    *** FILE SYSTEM WAS MODIFIED ***
    Important: If this message appears, repeat the fsck command you typed in step 2 until fsck tells you that your volume appears to be OK (first-pass repairs may uncover additional issues, so this is a normal thing to do).
    When fsck reports that your volume is OK, type reboot at the prompt and then press Return.
    Your computer should start up normally and allow you to log in.
    (This information is from the Apple Knowledge Base article entitled Resolve startup issues and perform disk maintenance with Disk Utility and fsck.)

  • CS3 problems in saving and opening files and uninstalling software

    ?? In CS3 Photoshop I get error message "Could not complete the SAVE AS command because of a program error?"  or "Could not complete your request because it is  not the right kind of documente?.
    I can save files as bitmap but not as psd, jpg, or tiff.  Is there a link that correlates all error messages?  Also, I am unable to uninstall the CS3 software.  I have my original CS3 software to install, but it will not install over existing file that can not be uninstalled.  Yes, I need help and thanks in advance.

    Read this article regarding installation issues and this one as well. if you are able to reinstall, everything should work out just fine. if not, come back with more pertinent questions and we will try to help
    Mylenium

  • Windows xp inst disk can't find hard drive. got recovery disks and loads files and starts windows

    I have a compaq 110C-1100DX  I believe has a virus I can't find. If I try to reinstall windows XP it can't find the hard drive. I have downloaded the drivers from intel for the controller  ICH7M/MDH SATA AHCI controller ( could not find on hp's site ) and slip streamed onto the inst disk, still no good. ordered a restore disk  from HP ( both ways I am using an external cd/dvd drive )
    . It copies files like it is going to install and then just continues to boot windows. The hard drive shows up in the bios and my computer, but not in device manager or disk management. all I can see are removable storage. I have run the diagnostics in the bios and they passed. I have lost use of the keyboard in windows, but it works to F key @ boot and works when needed during the installation process.
    thanks for any help you can give me. I have installed, upgraded and reinstalled operaring systems many times and never been stymied like this.

    If the drive is listed in Disk Utility do the following:
    Extended Hard Drive Preparation
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Set the number of partitions from the drop down menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    After formatting has completed quit DU and return to the installer. Complete the OS X installation.
    When you are installing Windows via Boot Camp the Windows installer needs to format the Boot Camp partition. Be extra careful to select only the partition you created with Boot Camp. The XP installer should label the partition "C:", and you should recognize it by its stated size.

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • Problem with Read-only user being able to add and delete files and folders.

    The setup:
    Computer #1
    iMac (intel) running 10.5.5
    File sharing ON
    Sharing folder on external USB drive called 'iTunes' (but not the drive volume itself)
    Users:
    - Everyone = Read Only
    - Admin(me) = Read/write
    - UserA = Read Only (with account PW and username identical to local login for computer below)
    Computer #2
    UserA's iBook G4 running 10.4.11
    When I go to finder>network>iMac>connect it prompts me to login which I do and then select 'iTunes' folder which is visible and mounts successfully. I can see all files, access them all. Life seems great. Then I discover that I can also modify and delete files from the iBook, and create and delete directories.
    I'm new to networking and although I've setup and managed minimal networking tasks on PCs before, this is my first foray into the Mac networking world. Please help.
    What am I doing wrong? What haven't I set?
    Thanks in advance.

    Sorry, I should have clarified this in the first email.
    When I login from the iBook, I am logging in under a read-only user (not as myself, who is admin on the iMac). The user on the iBook has only been given read-only permissions on the iMac yet is able to add and delete files.
    This read-only login/PW however, is the admin account on the iBook, but that shouldn't allow this person to write on the iMac so far as I understand things...right?

Maybe you are looking for

  • Report Template -  NULL in Row Template Condition

    I just found a workaround, but, in a report template, in a Row Template # Condition, based on a PL/SQL expression, the condition always fails if/when #COLUMN_VALUE# was NULL. I worked around this with a NVL in the query - but, is there a better way?

  • Reports through Report Painter

    Hi All, Can you please guide me how to use report painter and how to create custom reports through report painter. I want to prepare a report that will show Planned costs,Commitments,Actual Costs,Original Budget,Supplements,Current Budget in a single

  • Tiger + Vista Possible? Vanguard SoH.

    I want to play the game Vanguard: Saga of Heroes. However, it requires Windows. I have Vista Home Premium installation disc. Is it possible to run Windows Vista and Mac OS X 10.4 Tiger on my Intel iMac with Tiger installed currently? I don't really w

  • Mandatory field in inbound delivery

    Dear All i want set mandatory for some field like production date in inbound delivery please guide me how can customize field selection for inbound delivery? best regards R.T

  • Irca script password problem

    Hello, When executing the irca script I keep receiving the following error : Failed to establish a database connection due to the following error : ORA-01017 : invalid username/password; logon denied The problem is that I'm very certain about the pas