Get-ChildItem : The specified network name is no longer available.
Good afternoon-I have a script that tries to run Get-ChildItem with a specified path, but receives a “The specified network name is no longer available.” error. However, if I paste the exact path in a...
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
How are you defining the path – is it a mapped drive or UNC?
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
Regular UNC. For troubleshooting purposes, I tried running just the Get-ChildItem command in a Powershell window to eliminate anything else in my script that might be causing an issue, but this...
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
Get-ChildItem relies on the .NET Framework under the hood; that’s definitely a bit different, in terms of APIs, than what Windows Explorer would use. But it still ought to work. FWIW, it worked great...
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
Works fine for me. Try dir \\FQDN\Share at a normal command prompt, and see if you get the same problem (just to try to see if the problem is limited to PowerShell.)
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
@Don: I tried a similar test using the C$ share on one of my DCs and it worked without issue, even from a non-administrator shell (my account is a member of the Domain Admins group, just as a point of...
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
Ah. Subtle point I missed. But FQDN works for me in addition to NetBIOS name. So it’s pointing more toward your environment or configuration, as you suggested.
View ArticleMaking this chunk of code a little cleaner. (Counting values).
I’m working with some values I have in an ADFS configuration. I’m trying to add values back in, based on values I’m pulling back out of a CLIXML file.Manually, I can do the commands I need all day. I’m...
View ArticleReply To: Making this chunk of code a little cleaner. (Counting values).
I haven’t used the ADFS cmdlets you’re using, so I can’t say at this point whether there are any problems with that syntax. It looks like all you need is a foreach loop, though: foreach ($endpoint in...
View ArticleReply To: Making this chunk of code a little cleaner. (Counting values).
Actually, the way I wrote the foreach loop may not work, as it’s not exactly what you were doing with multiple endpoints (in my example, there was a separate call to Set-ADFSRelyingPartyTrust for each...
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
Thank you all for your assistance. It turns out that this was a Group Policy issue. For anyone who might see this and have a similar setup, this is what I had to do in order to access my Synology...
View ArticleReply To: Get-ChildItem : The specified network name is no longer available.
Ah, I didn’t realize we were talking about a non-Windows device. We’ve had to make similar changes in the past to access shares on Linux servers with Samba.
View ArticleReply To: Making this chunk of code a little cleaner. (Counting values).
Thanks so much! That worked perfectly. Just incase anyone is looking for a way to export/import a Claims Provider Trust on AD FS 2.x, in full, here is my script I finished....
View ArticleGet-ADPrincipalGroupMembership and Get-ADGroup Internal Error
I’m having a problem with two Active Directory Module cmdlets: Get-ADPrincipalGroupMembership and Get-ADGroup.Get-ADPrincipalGroupMembership: If I attempt to call a user who is a member of a group that...
View ArticleReply To: Get-ADPrincipalGroupMembership and Get-ADGroup Internal Error
These are mainly AD issues not PowerShell issues.First off – and this may seem like I’m splitting hairs – but the PowerShell team aren’t responsible for the AD cmdlets. They are produced by the AD...
View ArticleReply To: Get-ADPrincipalGroupMembership and Get-ADGroup Internal Error
Thank you, Richard. This gives me a better understanding of what’s occurring. Our DCs are 2008 R2, but I’m running AD module from Win7 and Win8 computers.These groups are a little old, and were...
View ArticleReply To: Winter Games 2013
Would the teams be mandatory, or can someone choose to just enter events individually? (if they don’t have people interested in forming a team, have unusual work schedules, or whatever)
View ArticleReply To: Winter Games 2013
Mandatory, minimum 2. But we will have an auto assignment system for people who don’t have a team in mind. We will allow enough time for people to collab across time zones. Part of the point is to...
View ArticleSchedule restart of service & email
I am trying to get this script to work on a windows 2008 R2 server to stop a service for example “spooler”, then start the service. I want to get an email only if the task fails, but right now for...
View ArticleReply To: Schedule restart of service & email
I suspect that part of your problem is that your code isn’t waiting for the service to stop before testing if it has stoppedfor testing purposes I’d break this down into a number of sections. I’d start...
View Article