• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

cannot map a network drive using snapin

Scheduled Pinned Locked Moved Unsolved
Windows Problems
2
2
923
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    oraniko
    last edited by Mar 28, 2017, 2:04 PM

    Server
    • FOG Version: 1.3.3
    • OS: centos 6.4
    Client
    • Service Version: sp1
    • OS: windows 7
    Description

    hi
    i have a simple script that map a network drive, this is the script:
    net use r: \ph.ph.biu.ac.il\Programs MYPASSWORD /user:DOMAIN\MYUSERNAME
    when i double click it, it work perfect
    when i try to use fog to deploy it with a simple snapin, it map it with a red X and when i try to access it, i get a message “r: is not accessiable, login failure unknown username or bad password”
    this is the fog log:

    -----------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     28/03/2017 16:04 Client-Info Client Version: 0.11.8
     28/03/2017 16:04 Client-Info Client OS:      Windows
     28/03/2017 16:04 Client-Info Server Version: 1.3.3
     28/03/2017 16:04 Middleware::Response Success
     28/03/2017 16:04 SnapinClient Snapin Found:
     28/03/2017 16:04 SnapinClient     ID: 88
     28/03/2017 16:04 SnapinClient     Name: amapdrive
     28/03/2017 16:04 SnapinClient     Created: 2017-03-28 13:41:31
     28/03/2017 16:04 SnapinClient     Action: 
     28/03/2017 16:04 SnapinClient     Pack: False
     28/03/2017 16:04 SnapinClient     Hide: False
     28/03/2017 16:04 SnapinClient     Server: 
     28/03/2017 16:04 SnapinClient     TimeOut: 0
     28/03/2017 16:04 SnapinClient     RunWith: cmd.exe
     28/03/2017 16:04 SnapinClient     RunWithArgs: /c
     28/03/2017 16:04 SnapinClient     Args: 
     28/03/2017 16:04 SnapinClient     File: amapdrive.cmd
     28/03/2017 16:04 Middleware::Communication Download: http://132.70.33.80/fog/service/snapins.file.php?mac=5C:F9:DD:75:0D:C2||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&taskid=88
    
    1 Reply Last reply Reply Quote 0
    • J
      Joe Schmitt Senior Developer
      last edited by Joe Schmitt Mar 28, 2017, 10:46 AM Mar 28, 2017, 4:45 PM

      @oraniko you need to keep in mind the client runs as Windows service, which gets run as SYSTEM (that is, a non-interactive user). This means you’ll need to take non-supported approach to get this working. Change
      net use r: \ph.ph.biu.ac.il\Programs MYPASSWORD /user:DOMAIN\MYUSERNAME
      to
      net use r: \ph.ph.biu.ac.il\Programs MYPASSWORD /user:DOMAIN\MYUSERNAME /persistent:yes

      Now, you need to keep in mind SYSTEM now owns this network mapping, and so only SYSTEM can remove it. In addition, Microsoft doesn’t really support this, so its likely the drive will show as disconnected for all users, but it should still be accessible if they try to open it.

      Perhaps a better approach would be to make a GPO logon script to auto mount these network shares.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      1 Reply Last reply Reply Quote 1
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post

      140

      Online

      12.1k

      Users

      17.3k

      Topics

      155.3k

      Posts
      Copyright © 2012-2024 FOG Project