Is it possible to use Powershell to determine if Windows Server Source Files are present on disk?

Hi everyone,
I would like to know if it is possible to use a Powershell cmdlet to determine if Windows Server 2012 (R2) Source Files are present on disk.
We are using an automated PS script to install roles and features and some registry keys and applications afterwards. If the Source Files are not present, the script will fail, so I would like a# Check if Source Files are present # stage built in
the script to determine if the source files are present or that an alternate source path needs to be used.
Is this possible with Powershell and if so, how can we achieve this?
I'll appreciate your answer.
- Rob

Hi Rob,
I assume that you are using powershell command "install-windowsfeature" .
I would suggest you add the parameter "-source" to specify the alternate path of thesource file .
" The path specified in this parameter is only used if the command cannot find feature files in the local side-by-side store of the specified target computer or VHD. "
For details please refer to the article below :
https://technet.microsoft.com/en-us/library/jj205467(v=wps.620).aspx
Best Regards,
Elton Ji
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

Similar Messages

  • Is it possible to use Boot Camp to install Windows on an external HD?

    So I don't use up space on my internal hard drive, would it be possible to use Boot Camp to install Windows to an external hard drive?

    Ok, so officially, you have to install it on your Mac's internal drive. Good, thanks for clearing that up.
    I guess the only simple alternative to installing Windows on your Mac's internal drive is to buy another Mac, and install it on there instead I mean, you could have a Mac Mini or a MacBook, and have that running Windows under Boot Camp.

  • Is it possible to use the microphone dictation in windows based program?

    Is it possible to use the microphone dictation in windows based program? I have tried dictating into Pages and copying and pasting, but the Windows based (Allscripts EHR) recognizes only the first attempt to copy and paste. Any future copying results on the first pasted dictation to show up in the Allscripts EHR.

    Hi,
    >>>configuration instead of coding etc
    currenly it is not possible to achive it without any coding
    >>>repeat messages with RSNAST00
    RSNAST00 is not used to repeat messages (idocs) but to send them
    try using standard IDOC in your sd invoice scenario
    if you don't want to do any coding
    Regards,
    michal

  • Is it possible to use some product on the unix server at the development level which would make it p

    Hello,
    We are generating editable PDF forms from the scratch at the development level on the unix server. Is it possible to use some product on the unix server at the development level which would make it possible to save these editable PDF forms to be saved using acrobat reader? These forms are used by the end users and the edited files are then saved... Kindly help me in this regard..
    Best Regards,
    Deepak

    Dear Aandi,
    I am really thankful to you for this. I will suggest this to the business and then they can contact adobe for this. Thanking you once again for providing me with all the valueable info. You have been instrumental in helping me out in my project.
    Best Regards,
    Deepak Goyal

  • I have a Windows 7 laptop using I tunes 64 and all my music files are on an external disc. I rarely use I tunes and at one point moved all my files (including the music files) from one external disc to another without considering what affect this wou

    I have a Windows 7 laptop using I tunes 64 and all my music files are
    on an external disc. I rarely use I tunes and at one point moved all my files
    (including the music files) from one external disc to another without
    considering what affect this would have on the I tunes library. When I eventually
    attempted to use I tunes, every selected a song from the library resulted in a
    message stating that the file couldn't be located. After following some of the procedures
    explained in this community I was able to reconnect the library back to where
    the associated music files are presently stored. However, there are still 2
    problems that need to be corrected. 1) Every song file now has a duplicate. One
    file works and the other file will result in the same message stating that the
    file couldn't be located. Before there were 4,000 songs in the library, now
    there are 8,000 songs. I need to eliminate the 4,000 dead song files. 2) All
    the playlists are still associated with the dead song files which makes the
    playlists unusable. Can the playlists be reconnected to the usable files
    without manually having to recreate them? Thanks in advance for the help.
    sdkr

    So am I understanding correctly?
    You used your iPod as a hard drive (drag and drop) instead of having iTunes install the music?
    If you used drag and drop your choices are different than if you used iTunes to transfer.
    Good luck!

  • How to Install Powershell 3.0 in Windows Server 2007

    Hi,
    Could you please let me know the steps to install Powershell 3.0 in
    Windows Server 2007 Ent.
    Regards,

    Follow the instructions in the links provided on this page:
    http://technet.microsoft.com/en-us/library/hh847837.aspx
    Did you mean Windows Server 2008?  There is no Windows Server 2007 Enterprise.
    I hope this post has helped!

  • I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open

    I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open. I am a new user to Windows 8.

    The full featured Reader for Windows 8 is Reader XI.
    Reader Touch works in all Windows 8 systems BUT it is intended mainly for use in mobile tablets - I see no particular reason to use it unless you can'r run Reader XI. Given it is mainly for use on mobile that can't use Flash, we aren't likely to ever see the development team spending their time on this.
    If you want the latest and greatest - at least try Reader XI, not X! (Flash is a separate download, it will prompt).

  • Can I use WindowsAzure NuGet package for Windows Server development?

    Which Nuget package should I be using when developing a service that uses the Service Bus for Windows Server 1.1? 
    I've been using the 'ServiceBus.v1_1' package up to now, but on a whim tried using the 'WindowsAzure.ServiceBus' package and that appears to be working for a basic program:
    var namespaceManager = NamespaceManager.Create();
    var messagingFactory = MessagingFactory.Create();
    var sub = messagingFactory.CreateQueueClient("queue");
    sub.RegisterSessionHandler(typeof(MySessionHandler));
    The reason I want to use this is as above - I want to use the RegisterSessionHandler feature to manage my sessions for me, but this functionality appears to be missing in the Service Bus 1.1 package.
    If I avoid using the newer, unsupported Azure features, should I be safe using this package?

    I can't speak to teh display quality of Office for Windows 2010 on a Retina display, but I'm successfully running Parallels 8 with Windows XP and Office 2010 - no problems with VBA at all.
    But let's hear from the Retina owners - I wouldn't think that you'd have any problems.
    Clinton

  • Uploading document using Powershell is throwing error- There is no file with URL

    Hi.
    I am trying to upload multiple documents to a sub folder in a library using powershell.
    I am getting the error as : ForEach-Object : Exception calling "Add" with "3" argument(s):
    "<nativehr>0x80070003</nativehr><nativestack></nativestack>There is no file
    with URL 'server/TestLibrary/User_image/ab_3f_wht_ist_small_gif.gif' in this Web."
    I have used the below code:
    function UploadImages($weburl)
    $docLibraryName = "TestLibrary"
    $localFolderPath = "C:\Users\Imgs\user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    $subFolderName="user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    #Attach to local folder and enumerate through all files
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles() | ForEach-Object {
    #Create file stream object from file
    $fileStream = ([System.IO.FileInfo] (Get-Item $_.FullName)).OpenRead()
    $contents = new-object byte[] $fileStream.Length
    $fileStream.Read($contents, 0, [int]$fileStream.Length);
    $fileStream.Close();
    write-host "Copying" $_.Name "to" $docLibrary.Title "in" $web.Title "..."
    #Add file
    $folder = $web.getfolder($docLibrary.Title + "/" + $subFolderName)
    write-host "folder is " $folder
    $spFile = $folder.Files.Add($folder.Url + "/" + $_.Name, $contents, $true)
    $spItem = $spFile.Item
    Write-Host -f Green "Added Images to Library !!!"
    $web.Dispose()
    How to fix this?
    Thanks

    HI,
    Is the name of the image or the sub folder name the issue?
    I have the images with the name as "ab_3f_wht_ist_small_gif.gif".  folder name "User_image"
    There are underscores on the file name, but there is no space. When I add the file from the library (using the UI), the image is getting added.
    But adding through the powershell is giving the issue.
    I have checked this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e810ad03-81ef-4fa6-aab8-ddc896a13ebf/getting-error-during-uploading-a-document-using-powershell?forum=sharepointdevelopmentprevious
    but did not help.
    Thanks

  • Using powershell to manipulate mapi profile and PST file locations

    I have a situation whereby I need to move a bunch of PST files out of the default location in Office 2010 and change the mapi profile for the user so that the pst file location updated so the user doesn't experience any issues when launching Outlook.
    My logic flow is as follows:
    1.) locate All pst files referenced in the logged on users MAPI profile.
    2.) Move these files to a another directory eg. c:\users\%username%\OutlookFiles
    3.) Update the MAPI profile to point to the new location so that when the user launches Outlook he doesn't notice that the files have been moved.
    I know how to copy the files using powershell etc. but how on earth do you query the MAPI profile to locate the pst files and then change each entry for a PST file to point to the new location.
    Anyone got any ideas?

    What you are trying to do cannot normally be done with a script due to a whole host of reasons including differences in versions and lack of access to a users profile.
    !. Are you on Exchnage?
    2. Have you redirected the users folders with Group Policy yet?
    Outlook OST files are not movable without the use of a third party tool.  It is far easier to just have the users create a new profile.
    PST files that are attached in a user session can be moved using a script that can be run by the user.
    ¯\_(ツ)_/¯

  • Use Powershell to deactivate Feature SharePoint Server Publishing Infrastructure

    Hi - we have activated Feature SharePoint Server Publishing Infrastructure on a site collection and now we have lost access that site - So is there a way I can use PowerShell to deactivate the feature?
    Thanks
    J

    Hi J,
    I'm not getting "we have lost access that site", Site administrator and System Account always have access to the site unless there is some error coming on the site which is not letting user to login in the browser.
    If you are getting access denied error then powershell script also throw the same error. So, for running powershell script you must have access to site.
    Best Regards,
    Brij K
    http://bloggerbrij.blogspot.co.uk/

  • Possible to use scanner over network (without sane server)?

    Hi,
    I'm completely new to the subject of printers and scanners.
    My configuration is the following: I got a HP OfficeJet 6500 in the basement, which is connected to a network switch, which my laptop (and a router and several other computers) is connected to.
    Thanks to CUPS, printing is no problem. I got it to work within no more than 10 minutes (YEAH! I bet no Windows user could have done that faster and easier!)
    Now I'm trying to get the scanner function to work.
    My question is this: is it possible to use that scanner in the basement with my laptop and NO ADDITIONAL sane server directly connected to it?
    Do I need a scan server which is DIRECTLY connected to the scanner (e.g. via USB)?
    The only information I found on that topic was how to access a working scan server over the network, but this is NOT what I want to do.
    Thanks for helping me with this.
    Edgar
    Last edited by EdgarButan (2010-05-02 14:13:43)

    Thanks, I didn't think so... but a misinformed sales rep suggested it was.
    If I just want to tie CUCM and Lync together, do I need anything special (UC Integration for Lync?) or is  it possible to do it with just a SIP interface?

  • Using PowerShell to Add Columns to A CSV File

    Hello,I wonder if someone can shed some light on this. I have a PowerShell script which has been working perfectly well pulling tab-seperated text log files off individual PCs, adjusting the data within and combining them into a single CSV for processing by our reporting tools via Excel and SQL. These files are call history logs generated by Toshiba Call Manager software installed on each PC. They keep a log of every call made by the phone linked to the individual user's software. By combining them for reporting, we get a clear and accurate picture of time spent on the phone etc.The problem we have is I need two extra columns added. One is for the person's name ('Person'), taken from the log file name, the other is a column for the call duration (which is logged under 'Dur' as a unit of time, e.g. 4:12 for 4 mins 12 seconds) and we...
    This topic first appeared in the Spiceworks Community

    Hello,I wonder if someone can shed some light on this. I have a PowerShell script which has been working perfectly well pulling tab-seperated text log files off individual PCs, adjusting the data within and combining them into a single CSV for processing by our reporting tools via Excel and SQL. These files are call history logs generated by Toshiba Call Manager software installed on each PC. They keep a log of every call made by the phone linked to the individual user's software. By combining them for reporting, we get a clear and accurate picture of time spent on the phone etc.The problem we have is I need two extra columns added. One is for the person's name ('Person'), taken from the log file name, the other is a column for the call duration (which is logged under 'Dur' as a unit of time, e.g. 4:12 for 4 mins 12 seconds) and we...
    This topic first appeared in the Spiceworks Community

  • Hyper-V 2012 High Availability using Windows Server 2012 File Server Storage

    Hi Guys,
    Need your expertise regarding hyper-v high availability. We setup 2 hyper-v 2012 host in our infra for our domain consolidation project. Unfortunately, we don't have hardware storage that is said to be a requirement that we can use to create a failover cluster
    for hyper-v host to implement HA. Here's the setup:
    Host1
    HP Proliant L380 G7
    Windows Server 2012 Std
    Hyper-V role, Failover Cluster Manager and File and Storage Services installed
    Host2
    Dell PowerEdge 2950
    Windows Server 2012 Std
    Hyper-V role, Failover Cluster Manager and File and Storage Services installed
    Storage
    Dell PowerEdge 6800
    Windows Server 2012 Std
    File and Storage Services installed
    I'm able to configure the new feature about Shared Nothing Live Migration - i'm able to move VM's back and fort between my hosts without storage. But this is planned and proactive approach. My concern is to have my hyper-v host to become highly available in
    the event of system failure. If my host1 dies, the VMs should go/move to host2 and vice versa. In setting this up, i believe i need to enable the failover clustering between my hyper-v hosts which i already did but upon validation, it says "No disks
    were found on which to perform cluster validation tests." Is it possible to cluster it using just a regular windows file server? I've read about SMB 3.0 and i've configured it as well i'm able to save VMs on my file server, but i don't think that my hyper-v
    hosts are already highly available.
    Any feedback and suggestions or recommendation is highly appreciated. Thanks in advance!

    Hi Guys,
    Need your expertise regarding hyper-v high availability. We setup 2 hyper-v 2012 host in our infra for our domain consolidation project. Unfortunately, we don't have hardware storage that is said to be a requirement that we can use to create a failover cluster
    for hyper-v host to implement HA. Here's the setup:
    Host1
    HP Proliant L380 G7
    Windows Server 2012 Std
    Hyper-V role, Failover Cluster Manager and File and Storage Services installed
    Host2
    Dell PowerEdge 2950
    Windows Server 2012 Std
    Hyper-V role, Failover Cluster Manager and File and Storage Services installed
    Storage
    Dell PowerEdge 6800
    Windows Server 2012 Std
    File and Storage Services installed
    I'm able to configure the new feature about Shared Nothing Live Migration - i'm able to move VM's back and fort between my hosts without storage. But this is planned and proactive approach. My concern is to have my hyper-v host to become highly available in
    the event of system failure. If my host1 dies, the VMs should go/move to host2 and vice versa. In setting this up, i believe i need to enable the failover clustering between my hyper-v hosts which i already did but upon validation, it says "No disks were
    found on which to perform cluster validation tests." Is it possible to cluster it using just a regular windows file server? I've read about SMB 3.0 and i've configured it as well i'm able to save VMs on my file server, but i don't think that my hyper-v hosts
    are already highly available.
    Any feedback and suggestions or recommendation is highly appreciated. Thanks in advance!
    Your shared storage is a single point of failure with this scenario so I would not consider the whole setup as a production configuration... Also setup is both slow (all I/O is travelling down the wire to storage server, running VMs from DAS is ages faster)
    and expensive (third server + extra Windows license). I would think twice about what you do and either deploy a built-in VM replication technologies (Hyper-V Replica) and apps built-in clustering features that does not require shared storage (SQL Server and
    Database Mirroring for example, BTW what workload do you run?) or use some third-party software creating fault tolerant shared storage from DAS or investing into physical shared storage hardware (HA one of course). 
    Hi VR38DETT,
    Thanks for responding. The hosts will cater a domain controller (on each host), Web filtering software (Websense), Anti-Virus (McAfee ePO), WSUS and an Auditserver as of the moment. Is the Hyper-V Replica somewhat give "high availability" to VMs or Hyper-V
    hosts? Also, is the cluster required in order to implement it? Haven't tried that but worth a try.

  • Determine Target directory from Source file names with out mapping

    Hi All,
    I have a requirement to determine the Target Directories from the Source file names.
    File Sender Adapter - XI - File Receiver Adapter
    In this scenario I am not doing any mapping. Source File directory contain 3 files. These file should go to 3 directories in the Target Server.
    Please help me how can meet this requirement
    Thanks in advance
    Kevin

    Hi Kevin,
    if you can separate the files by name. have 3 sender communication channels each picking up one of the files (you do this by making the regex in the file name mutually exclusive) and then send them all to the target system using the same comm. channel.
    regards,
    Horia

Maybe you are looking for

  • Control in Delivery(WM)

    Dear all System is allowing to delete the delivery item(VL02N) for which Transfer order is already created and confirmed.How to control this? Thanks in advance

  • Guidance on use of "COUNT(*) OVER () * 5" in a select query.

    Hello Friends, I was reading one article, in which one table was created for demo. Following was the statements for there. CREATE TABLE source_table NOLOGGING AS SELECT ROWNUM AS object_id , object_name , object_type FROM all_objects; INSERT /*+ APPE

  • Call Selection screen of other program..

    Hello ABAP Experts, I have a situation where in I need to call the selection screen of one sap generated standard program without executing that program & get the values of those selection variables in to my custom program. Is there a way to do that?

  • Insert a Page in a Page

    Using CS3 DW, im making a website for a friend for his auto sales/ business. Ive created templates using a DW template and modifying it. He has a URL (below) on cars.com. He wants to embed that page from cars.com into his webpage titled inventory. He

  • Slideshow environment when not in .mac

    Can anyone help? When I publish my site to a folder and up to a website, other than .mac, the slideshow environment changes to something pretty 'average' from the stylish thing it was on .mac. Does anyone know how you can make it more attractive, eve