Find network share process and kill it

Hi All,
Is it possible that we could find open network share access process and kill it?
For example, user is opened a folder via network share (e.g: \\myserver\c$\myfolder). Is it possible that we could somehow query process to identify this open network share process and kill it before attemp to delete C:\myfolder? Please advise.
Best Regards,
Andy Pham
Best Regards, Andy Pham

You could try checking for open file handles, as described here:
http://stackoverflow.com/questions/317071/how-do-i-find-out-which-process-is-locking-a-file-using-net. They have both a solution using an external executable utility (SysInternals) and one using PInvoke. You could also use this other utility which is specifically
targeted at hosts of network shares:
http://technet.microsoft.com/en-us/sysinternals/bb897552.aspx.
Wasabi Fan

Similar Messages

  • Invoking Remote Processes and Killing them

    Hi,
    I need to invoke c++/java programs remotely using a web browser on multiple computers on a network. I am running web servers on each of the computers. These web servers host servlets to invoke the processes locally on that computer. The web front end provides invocation of these servlets. The servlets are essentially using Runtime.exec(command) to start of the particular program (c++).
    the problem is now killing the processes remotely. Is there anyway I could accomplish that?
    Please give a example if possible. The last time I asked this question I was given some very tough answers which I could not comprehend at all.
    Thanks.

    thanks jschell for the quick reply,
    I found out a way to do this. I am using kill.exe, a utility to kill a process in windows given the name of the executing process. It seems to be working fine except a new problem. This may sound a bit wierd too. I am using a couple of machines including a few servers running win2k advanced server. I know using kill.exe on these servers is not a very nice thing to do from a security point of view but the present task is purely academic in nature. Back to the problem. I am able to run the batch file, kill.exe and other stuff on the local machine through a servlet hosted at a web server running on the same machine. I am ablr to do this for most machine except one. Now this machine is running win 2k advanced server too. The exact query that would be defined from this discussion could be -
    Are there some setttings that allow how much control is given to the servlets running on the web server at the local system?
    Can a servlet, once invoked, perform any action on the machine?
    I searched some literature/documentation on this. Did not get anything specific. Your reply would be higly appreciated regarding this.
    Cheers!

  • WD TV Live, sometimes doesn't find network shares

    Hello everyone, I have WD TV Live and WD external and network harddrive. My problem is that sometimes, randomly,player does not find the WD external drive. The only thing which helps is turn off and turn on the playerby unplugging and plugin the power adapter. Harddrive is allright, because at the same time is availablefrom other devices such as tablet or notebook. Has anyone simililar problem? Tanks for helpHawkeye

    I don't have a solution, but I have a workaround.  I had the same issue - intermittent connectivity, slow.  There's absolutely nothing wrong with my network, it's all hard-wired, all the computers (win 7 / Win 8) can browse to each other, play media, etc.  The proper computer was filing the role of Master Browser. For approximately a year, I used a Synology NAS acting as a DLNA "media server".  It worked perfect, never an issue.  I took down the NAS and built a dedicated Windows (7) media center, or HTPC.  That's when the trouble started with my WD unit. To solve it, I stopped using network sharing to get to the media from the WD device and instead downloaded Universal Media Server (installed on the dedicated HTPC), which is free and acts as a media server, the same way the orginal Synology NAS did.  Problem solved, easy setup!  My WD unit is back to being fast, always finds the media server etc. I'm convinced there's something wrong with the unit or the firmware (for some) and WD isn't interested in solving it.

  • Unable to save MS Word and Excel 2010 and 2013 onto the network share

    Hi,
    I have read similar cases, but did not work out on the problems we face.
    We are using Office 2010 and Windows 7 and it seems like only this combination will encounter saving problem on the networe share (but local / removable disks are fine) - 
    Other combinations:
    Windows XP and Office 2010 - no problem
    Windows XP and Office 2003 - no problem
    Windows 7 and Office 2003 - no problem
    In Microsoft Word 2010, when saving a new document, it will save but create a 0KB file in the network share drive and I notice the blue menu bar of the Microsoft Word 2010 still displays "Document1" instead the new file name.
    And only when I click save icon or exit button, Word actually prompts another "Save As" dialog to save the file, and as a result, I have to save the same file and answer MS Word prompt to replace the existing file - and this is the real time that
    the document and its contents really got saved. And the blue menu bar then displays the actual file name.
    In Microsoft Excel 2010 (also Powerpoint I suppose so), in saving a new excel file, after typing in a file name for the new file in the network share location, it will prompt a dialog box indicating the "File is currently in use"
    Similar to MS Word, it will still create a 0KB file in the network share, and only a second time saving and replace the 0KB file, is able to save the file again. 
    I have tried a lot of ways from Safe Mode, Disable Add-in, Added Trusted Locations to the network share in MS Word and Excel, Uninstall Antivirus software, redo NTFS permission on the network share server folder, etc but the problem cannot
    be solved.
    Any help is appreciated. Thank you in advance.
    Kind regards,
    Daryl

    Thank you Max.
    I have tried various storage configurations and share the folders out in Windows Servers and grant user accesses with AD.
    These drives configuration involves iSCSI drives, using NAS drive, using internal SAS RAID drives in Windows 2008 servers, all having the same errors, but the latter one was having the most errors almost every first time the users
    save their files (includes saving from email attachments), the files will get 0KB.
    I have tested LAN cables, switch LAN points in panels and switches, and comes to no avail.
    I have patched with the latest office updates (the latest being Office 2010 SP2) also to no avail.

  • Unattend Hit an error while pulling drivers from Network Share

    Hi All,
    I've run into an error with installing apps from network share via SynchronousCommands under Specialize pass in unattended answer file. I been trying to work on it since yesterday and haven't had any success so far. It keeps failing with an error below.
    This error is from setupact.log file and I've just pasted only the error from the file .
    synchronously
    2014-09-27 06:31:20, Info                         [SETUPUGC.EXE] Process returned with exit code 0x0
    2014-09-27 06:31:45, Error                        [SETUPUGC.EXE] Hit an error (hr = 0x80070056) while running [\\WDS-DEP-SERV\E\Distribution\Drivers\setup64.exe
    /s ]
    2014-09-27 06:31:45, Info       [0x090009] PANTHR CBlackboard::Close: c:\windows\panther\commandexec\commandexec.
    2014-09-27 06:31:45, Info                         [SETUPUGC.EXE] SetupUGC returning with exit code [4]
    This error is from setuperr.log.
    2014-09-27 06:31:45, Error                        [SETUPUGC.EXE] Hit an error (hr = 0x80070056) while running [\\WDS-DEP-SERV\E\Distribution\Drivers\setup64.exe
    /s ]
    Let me explain this situation. I've a server named WDS-DEP-SERV which is running my WDS, DHCP and DNS. I've an E drive on this server which contains setup64.exe and I'm trying to have the client pull that .exe via unattend answer file and install it either
    during Specialize pass under windows deployment services via Synchronoouscommands or under OOBE pass under Windows Shell setup via FirstLogoncommands ---> Synchronouscommands, but it's not working. I believe that my path format for network share is wrong.
    I've searched online almost everywhere since yesterday but I couldn't find anything.
    Can anyone please let me know what's the right way of go about doing it? This is the only thing that's not working for me. Below is my answer file, in case someone needs to see what I'm doing wrong.
    Thanks and hope to hear from someone.
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>WIN-8-DEPL</ComputerName>
                <ProductKey>MHF9N-XY6XB-WVXMC-BTDCT-MKKG7</ProductKey>
                <RegisteredOrganization>Microsoft</RegisteredOrganization>
                <RegisteredOwner>AutoBVT</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>eastern standard time</TimeZone>
                <CopyProfile>true</CopyProfile>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>net user administrator /active:no</Path>
                        <Description>Enabling Built in Administrator Account</Description>
                        <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>DisableNetworkLocationPrompt</Description>
                        <Order>2</Order>
                        <Path>REG ADD &quot;HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork&quot; /v Category
    /t REG_DWORD /d 00000000 /f</Path>
                        <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>REG ADD &quot;HKLM\System\CurrentControlSet\Services\Tcpip6\parameters&quot; /v DisabledComponents /t REG_DWORD /d 0xFF /f</Path>
                        <Order>4</Order>
                        <Description>Diasbling IPV6</Description>
                        <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Credentials>
                            <Domain>Mikasa.local</Domain>
                            <Password>Administrator</Password>
                            <Username>Ghtwhts2015</Username>
                        </Credentials>
                        <Path>\\WDS-DEP-SERV\E\Distribution\Drivers\setup64.exe /s </Path>
                        <Description>Vmware Tool Installation</Description>
                        <Order>3</Order>
                        <WillReboot>Always</WillReboot>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SearchScopes>
                    <Scope wcm:action="add">
                        <ScopeDefault>true</ScopeDefault>
                        <ScopeDisplayName>Google</ScopeDisplayName>
                        <ScopeKey>Google</ScopeKey>
                        <SuggestionsURL>http://www.google.com/search?q={search Terms}</SuggestionsURL>
                        <ShowSearchSuggestions>true</ShowSearchSuggestions>
                        <ShowTopResult>true</ShowTopResult>
                    </Scope>
                </SearchScopes>
                <DisableAccelerators>true</DisableAccelerators>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <Home_Page>www.marca.com</Home_Page>
                <BlockPopups>yes</BlockPopups>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirewallGroups>
                    <FirewallGroup wcm:action="add" wcm:keyValue="Remote Desktop">
                        <Active>true</Active>
                        <Group>Remote Desktop</Group>
                        <Profile>all</Profile>
                    </FirewallGroup>
                </FirewallGroups>
            </component>
            <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <UserAuthentication>0</UserAuthentication>
                <SecurityLayer>1</SecurityLayer>
            </component>
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Interfaces>
                    <Interface wcm:action="add">
                        <Identifier>00-50-56-30-85-87</Identifier>
                        <Ipv4Settings>
                            <DhcpEnabled>false</DhcpEnabled>
                            <Metric>10</Metric>
                            <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                        </Ipv4Settings>
                        <UnicastIpAddresses>
                            <IpAddress wcm:action="add" wcm:keyValue="1">172.16.5.21/24</IpAddress>
                        </UnicastIpAddresses>
                        <Routes>
                            <Route wcm:action="add">
                                <Identifier>0</Identifier>
                                <Prefix>0.0.0.0/0</Prefix>
                                <Metric>10</Metric>
                                <NextHopAddress>172.16.5.1</NextHopAddress>
                            </Route>
                        </Routes>
                    </Interface>
                </Interfaces>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Password>
                        <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <LogonCount>10</LogonCount>
                    <Username>DarkKnight</Username>
                    <Domain></Domain>
                </AutoLogon>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Home</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AFAAYQBzAHMAdwBvAHIAZAA=</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Admin User Account</Description>
                            <DisplayName>Omar</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Omar</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <RegisteredOrganization>Mikasa</RegisteredOrganization>
                <RegisteredOwner>Mikasa</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>eastern standard time</TimeZone>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
                <UILanguageFallback></UILanguageFallback>
            </component>
        </settings>
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipRearm>1</SkipRearm>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:e:/windows-os-images/win8.1x86ent-wimfiles/install.wim#Windows 8.1 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    Hi,
    Thanks for replying with your input. I'll go over that and make changes. Can you please help me out with the following as I can't figure this out why my script on the network share run and execute during unattend install?
    My script on my network share failed to run during unattend install right before the first login.
    Can someone take a look at my unattend xml file
    and suggest me a solution? I've highlighted the script paramters in bold. I've also attached my error message with this. Please check it out and make some suggestions. Thanks
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>WIN-8-DEPL</ComputerName>
                <ProductKey>MHF9N-XY6XB-WVXMC-BTDCT-MKKG7</ProductKey>
                <RegisteredOrganization>Microsoft</RegisteredOrganization>
                <RegisteredOwner>Microsoft</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>eastern standard time</TimeZone>
                <CopyProfile>true</CopyProfile>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Order>1</Order>
                        <Path>net user administrator /active:no</Path>
                        <Description>Enabling Built in Administrator Account</Description>
    <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
    <RunSynchronousCommand wcm:action="add">
    <Description>DisableNetworkLocationPrompt</Description>
                        <Order>2</Order>
    <Path>REG ADD &quot;HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork&quot;
    /v Category /t REG_DWORD /d
    00000000 /f</Path>
                        <WillReboot>Never</WillReboot>
    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>REG ADD HKLM\System\CurrentControlSet\Services\Tcpip6\parameters /v
    DisabledComponents /t REG_DWORD
    /d 0xFF /f</Path>
                        <Order>3</Order>
    <Description>Diasbling IPV6</Description>
                        <WillReboot>Never</WillReboot>
    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Credentials>
                            <Domain>Mikasa.local</Domain>
    <Password>Ghtwhts2015</Password>
                            <Username>Administrator</Username>
    </Credentials>
                        <Path>\\WDS-DEP-SERV\E\Distribution\Drivers\setup64.exe /s
    /v &quot;/qn REBOOT=ReallySuppress&quot; /l C:\Windows\Temp\vmware_tools_install.log</Path>
                        <Order>4</Order>
    <Description>Vmware
    Tools Installation</Description>
                        <WillReboot>Always</WillReboot>
    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableAccelerators>true</DisableAccelerators>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <Home_Page>www.marca.com</Home_Page>
                <BlockPopups>yes</BlockPopups>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirewallGroups>
    <FirewallGroup wcm:action="add" wcm:keyValue="Remote Desktop">
    <Active>true</Active>
                        <Group>Remote Desktop</Group>
    <Profile>all</Profile>
                    </FirewallGroup>
                </FirewallGroups>
            </component>
            <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64"
    publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <UserAuthentication>0</UserAuthentication>
                <SecurityLayer>1</SecurityLayer>
            </component>
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
    <Password>
    <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AFAAYQBzAHMAdwBvAHIAZAA=</Value>
    <PlainText>false</PlainText>
                    </Password>
    <Enabled>true</Enabled>
                    <LogonCount>10</LogonCount>
    <Username>DarkKnight</Username>
                    <Domain></Domain>
                </AutoLogon>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Home</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
    <PlainText>false</PlainText>
                    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AFAAYQBzAHMAdwBvAHIAZAA=</Value>
    <PlainText>false</PlainText>
                            </Password>
    <Description>Admin
    User Account</Description>
                            <DisplayName>DarkKnight</DisplayName>
    <Group>Administrators</Group>
                            <Name>DarkKnight</Name>
    </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <RegisteredOrganization>Mikasa</RegisteredOrganization>
                <RegisteredOwner>Mikasa</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>eastern standard time</TimeZone>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cmd /C start
    /wait E:\RemoteInstall\Images\Windows8\install\$OEM$\$$\Setup\Scripts\SetupComplete.cmd</CommandLine>
                        <Description>Various Apps Installation</Description>
    <Order>1</Order>
                        <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
                <UILanguageFallback></UILanguageFallback>
            </component>
        </settings>
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipRearm>1</SkipRearm>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:e:/windows-os-images/win8.1x86ent-wimfiles/install.wim#Windows
    8.1 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  • Windows 8.1 Network Share 0x8007003b Error Copying Files

    Hi All,
    I'm having an issue when copying files from a Windows network share. If the file is above 5MB it will start copying and then after a minute or two I will get an error such as:
    Interrupted Action
    An unexpected error is keeping you from copying the file. If you continue to receive this error, you can use the error code to search for help with this problem.
    Error 0x8007003B: An unexpected network error occurred.
    The network share is in a different office and is accessible over a point-to-point VPN, so the connection is not that fast. 
    But before everyone tells me to start diagnosing the router and or VPN please take note of the following:
    My colleague who is running Windows 7 can copy files from the network share fine
    If I run a Windows 7 VM on my Windows 8.1 laptop I can copy the files across fine
    I also know it isn't an issue with this particular file share. I set up a little lab, where I had one VM which had a shared folder and 2 other client VMs one running Windows 7 and one running Windows 8.1. I limited the bandwidth to the two client
    VMs to a similar speed we see across our VPN. The result was that the Windows 8.1 failed with the same error above, whereas the Windows 7 copied fine.
    There is also a noticeable difference visually when copying using Windows 8.1 and Windows 7:
    Windows 7 - The progress bar progresses smoothly giving the current speed and estimated time remaining
    Windows 8.1 - The progress bar progresses in a jumpy fashion. E.g. it shows no progress, then after a minute it jumps and shows 16% progress, then shows no further progress, then jumps by another 18%. There is no estimated time remaining.
    I ran Wireshark to investigate what was going on at the network layer. I see the following behaviour:
    Windows 8.1 - The file is copying fine then all of a sudden there are a lot of TCP dupack packets. After which the Windows 8.1 client sends a RST packet and then the error pops up.
    Windows 7 - The file is copying fine then you also see a load of TCP dupack packets, however no error is displayed and it continues copying fine.
    I'd appreciate any help with this I'm hoping there are some settings I can change to make Windows 8.1 behave more like Windows 7!
    FYI originally posed here (but was advised to ask on Technet) - https://answers.microsoft.com/en-us/windows/forum/windows8_1-files/windows-81-network-share-0x8007003b-error-copying/300bc9a4-597b-402a-b885-9dd6f6fb51a2
    Thanks,
    Zak

    Hi MeipoXu,
    Sorry, it has taken me so long to reply. I thought I had subscribed to receive updates on this thread, but I didn't see anything!
    I've ran the commands you gave but some of them did not work, I got the following error: 
    Set global command failed on IPv4 The parameter is incorrect.
    However, output of current settings are below.
    TCP Global Parameters
    Receive-Side Scaling State          : disabled
    Chimney Offload State               : disabled
    NetDMA State                        : disabled
    Direct Cache Access (DCA)           : disabled
    Receive Window Auto-Tuning Level    : normal
    Add-On Congestion Control Provider  : none
    ECN Capability                      : disabled
    RFC 1323 Timestamps                 : disabled
    Initial RTO                         : 3000
    Receive Segment Coalescing State    : disabled
    Non Sack Rtt Resiliency             : disabled
    Max SYN Retransmissions             : 2
    To answer your original questions.
    Do you mean the file below 5 MB will copy fine ?
    5MB is not a hard limit. If the file is small enough it will copy before it errors out. A file of around 5MB or so fails with an error.
    Have you tried to copy the files from another Windows 8.1 machine (This will help us to verify whether the issue is casued by the specific machine)?Have you tried to copy another file from the network share to have a check ?
    Yes I've tried from another Windows 8.1 machine and have the same behaviour. It is the same with different files from the network share. And the same with different network shares.
    I am seeing nothing in the event viewer when the error occurs. I do not believe this to be a VPN issue because I can recreate this situation perfectly. As I mentioned in the original post- I
    also know it isn't an issue with this particular file share. I set up a little lab, where I had one VM which had a shared folder and 2 other client VMs one running Windows 7 and one running Windows 8.1. I limited the bandwidth to the two client VMs to a similar
    speed we see across our VPN. The result was that the Windows 8.1 failed with the same error above, whereas the Windows 7 copied fine.
    Basically, I had virtual machines all on the same local network. One virtual machine was hosting a file share with files on it. I created one Windows 7 VM and one Windows 8.1 VM. Using VMWare Workstation you can limit the network bandwidth to the VMs. When
    I did not limit the network bandwidth I could copy all files of all sizes fine. However, when I limit the network bandwidth to a speed of around 30-50KBps, the Windows 8.1 VM fails to copy files with the same error. But Windows 7 VM copies the files fine.
    The point of limiting the bandwidth in this way is to create a similar scenario to that I see when connecting over the VPN.
    This all leads me to believe there is some sort of issue with copying files from fileshares over slow connections using Windows 8.1.
    Cheers,
    Zak

  • Available APIs for process and package management

    Hello All and welcome to my Hello All:
    Welcome to my inaugural post. I am a complete noob to Solaris (although I have been using Linux for 5+ years) and am in the process of trying to get a handle on what local C/C++ APIs (if any) are available for management. Specifically, I am looking to find out about process and package management.
    For process management, basically I would like to know is there some kind of interface to the the prstat application (ie. Memory and CPU utilization). Does something like this exist?
    For package management, I am looking for the ability to add, remove, and query the package �database�. Correct me if I am wrong, but the Solaris package �database� seems similar to that of a Debian system (at least from the perspective that the informational files are stored as plain text in a well-defined directory [ie /var/sadm/pkg/]).
    I have installed Solaris 10 on an x86 machine with a full installation; however, of the installed development kits (listed below) nothing jumped out at me.
    -bash-3.00# ls -1d /var/sadm/pkg/*devel
    /var/sadm/pkg/SUNWaspell-devel
    /var/sadm/pkg/SUNWevolution-devel
    /var/sadm/pkg/SUNWevolution-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-base-devel
    /var/sadm/pkg/SUNWgnome-a11y-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-reader-devel
    /var/sadm/pkg/SUNWgnome-a11y-speech-devel
    /var/sadm/pkg/SUNWgnome-audio-devel
    /var/sadm/pkg/SUNWgnome-base-libs-devel
    /var/sadm/pkg/SUNWgnome-camera-devel
    /var/sadm/pkg/SUNWgnome-common-devel
    /var/sadm/pkg/SUNWgnome-component-devel
    /var/sadm/pkg/SUNWgnome-config-devel
    /var/sadm/pkg/SUNWgnome-desktop-prefs-devel
    /var/sadm/pkg/SUNWgnome-file-mgr-devel
    /var/sadm/pkg/SUNWgnome-hex-editor-devel
    /var/sadm/pkg/SUNWgnome-img-editor-devel
    /var/sadm/pkg/SUNWgnome-libs-devel
    /var/sadm/pkg/SUNWgnome-media-devel
    /var/sadm/pkg/SUNWgnome-panel-devel
    /var/sadm/pkg/SUNWgnome-pilot-devel
    /var/sadm/pkg/SUNWgnome-print-devel
    /var/sadm/pkg/SUNWgnome-project-devel
    /var/sadm/pkg/SUNWgnome-terminal-devel
    /var/sadm/pkg/SUNWgnome-text-editor-devel
    /var/sadm/pkg/SUNWgnome-vfs-devel
    /var/sadm/pkg/SUNWgnome-wm-devel
    /var/sadm/pkg/SUNWgnutls-devel
    /var/sadm/pkg/SUNWjpg-devel
    /var/sadm/pkg/SUNWlibexif-devel
    /var/sadm/pkg/SUNWlibgcrypt-devel
    /var/sadm/pkg/SUNWlibpopt-devel
    /var/sadm/pkg/SUNWmozilla-devel
    /var/sadm/pkg/SUNWmoznspr-devel
    /var/sadm/pkg/SUNWmoznss-devel
    /var/sadm/pkg/SUNWogg-vorbis-devel
    /var/sadm/pkg/SUNWopenjade-devel
    /var/sadm/pkg/SUNWopensp-devel
    /var/sadm/pkg/SUNWpcsclite-devel
    /var/sadm/pkg/SUNWpng-devel
    /var/sadm/pkg/SUNWpostgr-devel
    /var/sadm/pkg/SUNWPython-devel
    /var/sadm/pkg/SUNWTiff-devel
    I've placed orders for Solaris Internals and Solaris Performance & Tuning (that should arrive tomorrow), but I was hoping that someone could give me a gentle push (or perhaps a swift kick) in a general direction. :)
    Thanks.

    For process management, basically I would like to
    know is there some kind of interface to the the
    prstat application (ie. Memory and CPU utilization).
    Does something like this exist?Not prstat (although you could 'truss' it and see some of what it's doing to collect the information). kstat is available with a C interface and through perl/shell. It has several CPU fields. It's certainly useful for monitoring, but read-only. I'm not sure what you're looking for in terms of "management".
    Also 'dtrace' can provide tons of dynamic information, but that's not necessarily what you're looking for.
    For package management, I am looking for the ability
    to add, remove, and query the package �database�.
    Correct me if I am wrong, but the Solaris package
    �database� seems similar to that of a Debian system
    (at least from the perspective that the
    informational files are stored as plain text in a
    well-defined directory [ie /var/sadm/pkg/]).Yes, although it's based on the SysV packaging system. I don't believe there's any API for it outside of the 'pkg*' utilities.
    Darren

  • E4200 drops Network Shares WDTV Streaming

    Hi all
    I'm unsure whether or not this is an issue with the router or the WDTV player. So I've posted a similar message on the Western Digital foums.
    Basically I use the WDTV to stream movies from my PC and external harddrive (which is plugged straight into the router) to my TV. The WDTV has a "Network Shares" section and my PC and harddrive usually appear here.
    The only way I can get them to show is to reboot the router each time I want to use the WDTV player.
    Is there a setting on the router which I need to enable/disable which will prevent the network shares drop?
    thanks

    I managed to fix my issue.
    This is what I did.
    1) Changed my WORKGROUP name on my PC from "WORKGROUP" to "WORKGROUP-UK"
    2) I then inputted the new workgroup name onto my WDTV player
    To change the workgroup on your PC do the following
    Control Panel --- System and Security --- System
    Click 'Advanced system settings'
    Click 'Computer Name' tab
    Click 'Change'
    Type desired workgroup name
    Click OK
    Reboot PC.
    I hope this helps others.

  • How Do I find out what app is auto-mounting a network share and stop it?

    I have a new laptop, the 13" rMBP.  I installed Steam and wanted to use the network share on my server to store the game files.  Everything went OK.  I closed Steam, disconnected the share and shutdown my laptop.  When I opened my laptop later on at work, it started to try and mount the network share.It keeps on going it.  I removed the Steam app and all files related to Steam that I could find.  I've looked at fstab, auto_home, auto_master and a large list of other files and directories and I *still* cannot find the offending file that's auto-mounting the share.  It's really frustrating.
    The share auto-mounts when I am home but not on the desktop or in finder.  I find it by looking at /Volumes/ in terminal.  If I mount the share manually under /Volumes/ it shows as Games-1 and mounts on the desktop under Games.
    Does anyone have any ideas on where I should be looking to find the offending process/file/daemon?
    Thank you!
    Trevor

    thanks for the reply but are you sure about this? What difference would it make? Why 5 apps?
    Even if it does work, which I doubt, at some point, I will have to resync ALL my apps again and surely the same thing will happen again, and I will be none the wiser. I still won't know which app it is. There must be a way of finding this out.
    Any ideas?
    What is really freaking me out is how it is connecting to my carrier (who is charging me) with Cellular data switched off.......?
    Thanks again.

  • How to get "fast user switching" and network shares playing nice

    I've been alternating between banging my head against a wall and reading every forum I could find to try and get a reasonable compromise between using "Fast user switching" and sharing a folder from a file server.  It baffles me how the network share/mount model of OSX/AFP is completely killed by fast-user-switching; this is a big problem with Apple requiring users to be actively logged in to share music/video from iTunes which therefore essentially requires fast-user-switching if anyone else wants to use the computer.  (anyone find it odd that you can share files without being logged in, but sharing songs requires an active login for each user who is sharing?  Apple: time to make iTunes sharing a service!)
    For the sake of example, lets just say I want to share my /Groups folder from my desktop and have it be accessible to my laptop.  Here are all the things that I tried:
    Apple Method 1) Share /Groups in the Server.app on the desktop (running Lion Server), use finder on the laptop and drag the share icon to "Login Items", alternative use a startup Apple script using "mount volume"  Both of the options work and will mount the /Groups folder under /Volumes/Groups, of course when the second person logs in via fast-user-switching (and occasionally the first person for no apparent reason), they will get /Volumes/Groups-1 since /Volumes/Groups is already taken.  Tomorrow we log in a different order and now the previously /Volumes/Groups-1 user has their mount at /Volumes/Group and vice versa.  Any links, aliases, finder sidebar references, and application settings which pointed to yesterday's location are now BROKEN.  Not very user friendly to my mother-in-law who is trying to find those pictures of the kids and doesn't know anything about mount points. I also can't reasonably mirror the file location structure on the desktop so that application preferences that are synced between the two (portable home directories) work.   fail.
    Apple Method 2) Use automounter and set up by hand direct maps for /Groups or an indirect maps for the children of /Groups.  Now it will automatically get mounted to /network/servers/SERVER/Groups/ on the laptop and on the desktop it will automatically create a similar symlink structure so that the same path (/network/servers/SERVER/Groups) work both on desktop and laptop.  Cool.  Except when the second person logs in, the /network/servers/SERVER/Groups/ mountpoint is already owned by the first user and they don't have any permissions to access it.  Fail.
    Apple Method 3) Use mount_afs and specify directly the mount-points.  Have each user have their own startup AppleScript which mounts /Groups to a different location (e.g. /Users/Shared/username/Groups) that way they don't conflict with multiple users.  On the desktop, set up symlinks from /Users/Shared/username/Group to /Groups so that it will be the same as the client and applications settings will work when synchronized back/forth by portable-home-directories.  Will it work, yes it does, but what a bear to maintain.  Is this really what I should expect to do just to have multiple users on my desktop and laptop (which again is essentially required now if I want to do any type of iTunes sharing).  This can't be what apple expects.
    What I ended up doing - the "not quite apple" solution.
    Non-Apple Method 4) After a read of "Autofs: Automatically Mounting Network File Shares in Mac OS X" (http://images.apple.com/business/docs/Autofs.pdf) at the very end there is a single paragraph  of "Kerberized NFS": "A Kerberized NFS mount can have multiple connections from multiple users, each using the correct user’s credentials for each transaction. This allows administrators to support multiple users, each authenticated with their own credentials to the same mount point. This is very different from AFP and SMB mounts," (emphasis mine)
    It appears that by using good 'ole NFS (abeint with Kerberos for security!) you can actually have multiple users on the same mount point.  Roughly following the guidance at https://support.apple.com/kb/TA24986?viewlocale=en_US.  What I needed to do was:
    1) create /etc/exports on my desktop and add a single line "/Groups -sec=krb5".  The existence of /etc/exports triggered a start of nfsd which no longer has any GUI options in Lion.
    2) Add a line to /etc/auto_master on my laptop "/-  auto_mymounts" to reference a new direct map.
    3) Create /etc/auto_mymounts and add a single line "/Groups         SERVER:/Groups" to create the direct map.
    THAT'S IT.  Three lines in three files.
    Now when I log into my laptop, there is a /Groups that is a network mount of my desktop's /Groups, same location AND it works for all of my users, even simultaneously. 
    In the end I'm happy with what I've got, but man was this a difficult path just to support fast-user-switching.  In Lion, Apple appears to be getting away from NFS (no longer turned on by default and remove from the GUI controls) but clearly this really useful functionality which doesn't exist in AFP. 
    I'm really curious, after all this work.  Any other ways to accomplish this?

    In my example above, yes I chose to mount the share "Groups" to the top of the root since that is where I put it on my server and I wanted to keep them similar; but that was just my preference, it isn't a requirement.  You can export and mount from other directories.

  • Scipt to prompt and authenticate users to AD and then map 2 next available drive letters to 2 network shares

    Hi,
    So I have been trying to write some code that will
    prompt users to authenticate to AD and use that authentication to map the next 2 available drive letter to two network shares.
    I have adopted using the HAT format as this provides me with the ability to prompt for a username and password and authenitcate to AD.
    <script language="vbscript">
    Function setSize()
    window.resizeTo 350,300
    Window.moveTo (screen.width-240)/2, (screen.height-600)/2
    End Function
    Function cmdSubmit_OnClick()
    Dim strUser 'User Name variable
    Dim strPW 'User Password variable
    if auth.username.value = "" Then
    msgbox ("ERROR: No User account information provided. Please Try Again!")
    cmdSubmit_OnClick = False
    Elseif auth.password.value = "" Then
    msgbox ("ERROR: No User account information provided. Please Try Again!")
    cmdSubmit_OnClick= False
    Else
    strUser = auth.username.value
    strPW = auth.password.value
    Authenticate strUser, strPW
    End If
    End Function
    Public Sub Authenticate (Byref strUser, Byref strPW)
    On Error Resume Next
    Const ADS_SECURE_AUTHENTICATION = &H1
    Const ADS_SERVER_BIND = &H200
    Dim strPath 'LDAP path where the Users accounts are listed
    Dim LDAP 'Directory Service Object reference variable
    Dim strAuth 'Parses the User Name and Password through the DSObject
    strPath = "LDAP://fanzldap.au.fjanz.com/rootDSE"
    Set LDAP = GetObject("LDAP://company/rootDSE")
    Set strAuth = LDAP.OpenDSObject(strPath, strUser, strPW, ADS_SECURE_AUTHENTICATION Or ADS_SERVER_BIND)
    If Err.number <> 0 Then
    intTemp = msgbox(strUser & " could not be authenticated", vbYES)
    if intTemp = vbYes Then
    'window.location.reload()
    End If
    Else
    For Each obj in strAuth
    If obj.Class = "user" Then
    If obj.Get("samAccountName") = strUser Then
    msgbox ("Success! " & strUser & " has been authenticated with Active Directory")
    window.close()
    Set wShell = CreateObject("Wscript.shell")
    wShell.run "Firstletterali.vbs"
    End If
    End If
    Next
    End If
    End Sub
    </script>
    <head>
    <body style="background-color:#B0C4DE">
    <img src=Title.jpg><br>
    <HTA:APPLICATION
    APPLICATIONNAME="User Login"
    BORDER="thin"
    SCROLL="no"
    SINGLEINSTANCE="yes"
    WINDOWSTATE="normal">
    <title>NAS Authentication</title>
    <body onload="vbs:setSize()">
    <div class="style2">
    <h3>NAS Archive Authentication</h3>
    </div>
    <form method="post" id="auth" name="auth">
    <span class="style3"><strong>User Name:&nbsp; </strong></span>
    <input id="Username" name="Username" type="text" style="width: 150px" /><br>
    <span class="style3">
    <strong>Password:&nbsp;&nbsp;&nbsp;&nbsp; </strong></span>
    <input id="password" name="password" type="password" style="width: 150px" /><br><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="submit" value="Submit" name="cmdSubmit" />
    <input type="button" value="Exit" onclick="self.close()">
    </form>
    </body>
    </html>
    using the above I can succefully authenticate users but I cant work out how to then use that authenticattion to map the next to available drive letters to a network source.
    The code I have for that is
    Option Explicit
    Dim strDriveLetter, strRemotePath, strRemotePath1, strDriveLetter1
    Dim objNetwork, objShell
    Dim CheckDrive, DriveExists, intDrive
    Dim strAlpha, strExtract, intAlpha, intCount
    ' The section sets the variables
    strRemotePath = "\\mel\groups\Team\general"
    strRemotePath1 = "\\mel\groups\Team\specific"
    strDriveLetter = "B:"
    strDriveLetter1 = "H:"
    strAlpha = "BHIJKLMNOPQRSTUVWXYZ"
    intAlpha = 0
    intCount = 0
    err.number= vbEmpty
    ' This sections creates two objects:
    ' objShell and objNetwork and then counts the drives
    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    Set CheckDrive = objNetwork.EnumNetworkDrives()
    ' This section operates the For ... Next loop
    ' See how it compares the enumerated drive letters
    ' With strDriveLetter
    On Error Resume Next
    DriveExists = False
    ' Sets the Outer loop to check for 24 letters in strAlpha
    For intCount = 1 To 24
    DriveExists = False
    ' CheckDrive compares each Enumerated network drive
    ' with the proposed drive letter held by strDriveLetter
    For intDrive = 0 To CheckDrive.Count - 1 Step 2
    If CheckDrive.Item(intDrive) = strDriveLetter _
    Then DriveExists = True
    Next
    intAlpha = intAlpha + 1
    ' Logic section if strDriveLetter does not = DriveExist
    ' Then go ahead and map the drive
    'Wscript.Echo strDriveLetter & " exists: " & DriveExists
    If DriveExists = False Then objNetwork.MapNetworkDrive _
    strDriveLetter, strRemotePath
    call ShowExplorer ' Extra code to take you to the mapped drive
    ' Appends a colon to drive letter. 1 means number of letters
    strDriveLetter = Mid(strAlpha, intAlpha,1) & ":"
    ' If the DriveExists, then it is necessary to
    ' reset the variable from true --> false for next test loop
    If DriveExists = True Then DriveExists = False
    Next
    WScript.Echo "Out of drive letters. Last letter " & strDriveLetter
    WScript.Quit(1)
    'Sub ShowExplorer()
    'If DriveExists = False Then Wscript.Echo strDriveLetter & " Has been mapped for archiving"
    'If DriveExists = False Then objShell.run _
    '("Explorer" & " " & strDriveLetter & "\" )
    'If DriveExists = False Then WScript.Quit(0)
    'End Sub
    On Error Resume Next
    DriveExists = False
    ' Sets the Outer loop to check for 24 letters in strAlpha
    For intCount = 1 To 24
    DriveExists = False
    ' CheckDrive compares each Enumerated network drive
    ' with the proposed drive letter held by strDriveLetter1
    For intDrive = 0 To CheckDrive.Count - 1 Step 2
    If CheckDrive.Item(intDrive) = strDriveLetter1 _
    Then DriveExists = True
    Next
    intAlpha = intAlpha + 1
    ' Logic section if strDriveLetter1 does not = DriveExist
    ' Then go ahead and map the drive
    'Wscript.Echo strDriveLetter1 & " exists: " & DriveExists
    If DriveExists = False Then objNetwork.MapNetworkDrive _
    strDriveLetter1, strRemotePath1
    call ShowExplorer ' Extra code to take you to the mapped drive
    ' Appends a colon to drive letter. 1 means number of letters
    strDriveLetter1 = Mid(strAlpha, intAlpha,1) & ":"
    ' If the DriveExists, then it is necessary to
    ' reset the variable from true --> false for next test loop
    If DriveExists = True Then DriveExists = False
    Next
    WScript.Echo "Out of drive letters. Last letter " & strDriveLetter1
    WScript.Quit(1)
    Sub ShowExplorer()
    If DriveExists = False Then Wscript.Echo strDriveLetter & " Has been mapped for archiving"
    If DriveExists = False Then objShell.run _
    ("Explorer" & " " & strDriveLetter & "\" )
    If DriveExists = False Then WScript.Quit(0)
    End Sub
    Now the above script will find the next availabe letter and map one location to it...I still havent worked out to create another loop for it to do it again. It obviously also requires that you already be authenticated to map to that location.
    I looking for some help on how to marry these to scripts together.
    Thanks
    Ali

    Hi Ali
    Here is some code that will enumerate two free adjacent drive letters. It starts searching from "C" all the way to "Z" for two drives letters that are adjacent and returns the results in an array then echos the results. You can easily adapt this code to
    map your network drives to each drive letter. Hope that helps
    Cheers Matt :)
    Option Explicit
    Dim objFSO
    On Error Resume Next
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    ProcessScript
    If Err.Number <> 0 Then
    WScript.Quit
    End If
    On Error Goto 0
    'Functions Processing Section
    'Name : ProcessScript -> Primary Function that controls all other script processing.
    'Parameters : None ->
    'Return : None ->
    Function ProcessScript
    Dim driveLetters, driveLetter
    If Not GetFreeDrives(driveLetters) Then
    Exit Function
    End If
    For Each driveLetter In driveLetters
    MsgBox driveLetter, vbInformation
    Next
    End Function
    'Name : GetFreeDrives -> Searches for a pair of free adjacent drive letters.
    'Parameters : adjacentDrives -> Input/Output : variable assigned to an array containing the first two free adjacent drives.
    'Return : GetFreeDrives -> Returns True if Successful otherwise returns False.
    Function GetFreeDrives(adjacentDrives)
    GetFreeDrives = False
    Dim drive, driveLetter, drivesDict, i
    Set drivesDict = NewDictionary
    driveLetter = "C"
    'Add the drives collection into the dictionary.
    For Each drive In objFSO.drives
    drivesDict(drive.DriveLetter) = ""
    Next
    'Check drive letters C: to Z: for two free adjacent drive letters and set the "driveLetter" variable to the first one.
    For i = Asc(driveLetter) To Asc("Z")
    If Not drivesDict.Exists(Chr(i)) And Not drivesDict.Exists(Chr(i + 1)) Then
    driveLetter = Chr(i)
    Exit For
    End If
    Next
    'If two free adjacent drive letters were not found then exit.
    If driveLetter = "" Then
    Exit Function
    End If
    adjacentDrives = Array(driveLetter, Chr(Asc(driveLetter) + 1))
    GetFreeDrives = True
    End Function
    'Name : NewDictionary -> Creates a new dictionary object.
    'Parameters : None ->
    'Return : NewDictionary -> Returns a dictionary object.
    Function NewDictionary
    Dim dict
    Set dict = CreateObject("scripting.Dictionary")
    dict.CompareMode = vbTextCompare
    Set NewDictionary = dict
    End Function

  • I attempt to open a second window from the icon but it does not open then when firefox is closed it will not reopen because it is still running in processes but no window displayed until you kill the process and then restart firefox.

    I attempted to open a new window from the Firefox icon but nothing happens. I then went on browsing and closed Firefox but was later unable to open it. I checked processes and it was already running but there was no window displayed. I am running Windows 7 Professional.
    This is repeated any time I already have the browser open and wish to open a second instance.

    '''<u>Open a second window (not a second tab, that is different) when Firefox is already running and displayed on the monitor</u>'''
    *Firefox button > New Tab > New Window
    *CTRL+N
    *'''''If using the Menu Bar''''': File > New Window
    **To '''''temporarily''''' display and make choices from the Menu Bar press the ALT key or the F10 key
    **Also see: https://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing
    '''<u>Firefox "hang on exit"</u>'''
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Is it possible to prevent the OS from dropping and deleting a network share shortcut?

    One thing that has always bugged me about Mac OS is that when a network share becomes unresponsive or unavailable the shortcut on the desktop disappears and you get a glaring messaging that the share has been disconnected.
    Is there any way to prevent a network share from being removed just because it becomes momentarily unavailable?
    As an example, on a Windows machine the network share shortcut remains, you simply cannot use it but it is there and ready to go the moment the share comes back online. Is there some way to make OS X behave in this manner? Or is there a way to extend the time out interval for a network share?
    Thanks.

    Drag the icon into the sidebar of a Finder window under FAVORITES.

  • Check Process memory consumption and Kill it

    Hello
    I have just installed Orchestrator and have a problem that I think is perfekt for Orchestrator to handle.
    I have a process that sometimes hangs and the only way to spot it is that the memory consumption has stoped.
    The process is started every 15 minutes and scans a folder, if it finds a file it reads the file to a system. You can see that it is working by the increasing Memory consumption. If the read fails then the memory consumption stops. The process is still working
    and is responding but is hung.
    I'm thinking about doing a runbook that checks the memory-consumption every 5 minutes and compares it with the previous value. if the last three values are the same then I will kill the process and start it again.
    My problem is that I have not found a way to check the memory consumption of a process.
    I have set up a small test, just verify that I get the correct process, with the activity Monitor process -> Get Process Status -> Append Line (process name).
    But How do I get the process memory consumption?
    /Anders

    Now that I think about it a bit more I don't think there will be an easy way to set up a monitor for your situation in SCOM. Not that it couldn't be done, just not easily. Getting back to SCORCH. What you are trying to do isn't an every day kind of
    scenario. I don't think there is a built in activity for this.
    The hardest thing to overcome whether you use SCORCH or SCOM is likely going to be determining the error condition of three consecutive samples of the same memory usage. you'll need a way to track the samples. I can't think of a good way to do
    this without utilizing scripting.

  • How can I automount a network share in Finder?

    Currently I have to browse my network computer under "SHARED" and manually drag/drop the shared folder into Finder under "DEVICES".
    Is there a way to do this automatically?
    See the images below:
    http://img.photobucket.com/albums/v154/3eleven/Mac/network-share-osx-01.jpg
    http://img.photobucket.com/albums/v154/3eleven/Mac/network-share-osx-02.jpg

    Nope again.
    Finder doesn’t have any option to display Network Share, only Connected Servers.
    See image below
    http://img.photobucket.com/albums/v154/3eleven/Mac/FinderPreferences.jpg
    Ive been searching for a solution for this since Tiger. At least they fixed a number of Network share issues with Leopard, but they still dont have this fixed.
    Message was edited by: monkey311

Maybe you are looking for